macOS Tips Collection
macOS Features Developers Should Know Introducing hidden features that help you use your Mac more efficiently.
Screenshots & Screen Recording
Basic Screenshot Shortcuts
Cmd + Shift + 3
: Capture entire screenCmd + Shift + 4
: Capture selected areaCmd + Shift + 4 + Space
: Capture specific window
Capture Window Without Shadow
After entering window capture mode with Cmd + Shift + 4
→ Space
:
- Hold Option key and click: Capture without shadow
- Just click: Capture with shadow
When you hold the Option key, the shadow preview around the window disappears.
Screen Recording
Press Cmd + Shift + 5
to show screenshot and screen recording tools:
- Record entire screen
- Record selected area
- Timer settings available
- Choose to include/exclude microphone audio
Application Management
Force Quit
When an app is not responding:
- Method 1:
Cmd + Option + Esc
→ Select app → Force Quit - Method 2: Hold Option key and right-click app icon in Dock → Force Quit
- Method 3: Use Activity Monitor (
Cmd + Space
→ "Activity Monitor")
Quick App Quit
Press Cmd + Option + Q
instead of Cmd + Q
to quit immediately without confirmation.
File Management Tips
Show/Hide Hidden Files
In Finder, press Cmd + Shift + .
(period) to toggle hidden files.
Copy File Path
After selecting a file in Finder:
Option + Cmd + C
: Copy file path to clipboard
Quick Look
Select a file and press Space
to preview it.
- Code files are previewed with syntax highlighting
- Select multiple files and press Space for slideshow
Text Editing Shortcuts
Emacs-style Shortcuts
macOS supports Emacs shortcuts in all text input fields:
What is Emacs? A text editor created in the 1970s with an efficient shortcut system for text editing. macOS supports these shortcuts system-wide.
Ctrl + A
: Go to beginning of lineCtrl + E
: Go to end of lineCtrl + K
: Delete from cursor to end of lineCtrl + D
: Delete character to the right of cursorOption + ←/→
: Move by wordOption + Delete
: Delete by word
Special Character Input
Press Ctrl + Cmd + Space
to open emoji & special character popup.
Spotlight Search Usage
Open Spotlight with Cmd + Space
and:
- Calculator: Direct calculations like
2+2
,100*1.1
- Unit conversion:
100cm in inches
,32c in f
- Search by file type:
kind:pdf
,kind:image
- Search by date:
created:today
,modified:yesterday
Additional Tips
Rename Multiple Files at Once
In Finder, select multiple files → Right-click → "Rename X Items..."
- Replace Text: Find and replace specific text
- Add Text: Add text before/after filename
- Format: Number sequentially
Clipboard History
If you accidentally overwrite copied text:
- Many apps allow access to clipboard history with
Cmd + Shift + V
- Or use launcher apps like Raycast/Alfred
Window Minimize Shortcuts
Cmd + M
to minimize current window to Dock
Cmd + Option + M
to minimize all windows of current app
Prevent Mac Sleep Mode (caffeinate)
When using Mac as a server or during long tasks to prevent sleep:
Open Terminal and copy-paste the following command:
# Basic usage (until Ctrl+C)
caffeinate
# Prevent sleep for 1 hour only
caffeinate -t 3600
# Prevent sleep while specific process runs
caffeinate -i npm run build
[!TIP]
caffeinate -d
also prevents the display from turning off.
Conclusion
Now you can use your Mac much more efficiently! Check back anytime if you get stuck while developing.