59

What are your favorite keyboard shortcuts on Mac OS X?

Ry-
  • 125
  • 5
radius
  • 140

36 Answers36

45

ctrl+F2: Access the menu via the keyboard (Windows alt+space equivalent).

gentmatt
  • 49,722
intlect
  • 396
40

Typing / on any file dialog will give you a "go to folder" dialog, which autocompletes with tab (you have to wait a second for it to work). This lets you type in the full path, from the root / folder.

Extra handy if you want to open from / save to hidden locations or already have the command line path you want to save something in.

This can be also accessed via ~ (i.e. the tilde key, to start from your home directory, e.g. ~/Documents) or using cmd+shift+G (which starts with the most recently entered directory).

drfrogsplat
  • 8,610
Asmus
  • 7,585
30

+space: activate spotlight.

Then you can launch any application, open most files, do quick calculations, etc.

gentmatt
  • 49,722
Tom H
  • 296
26

++4: selective screenshot saved on desktop

++ctrl+4: selective screenshot saved in clipboard

gentmatt
  • 49,722
Am1rr3zA
  • 13,219
  • 14
  • 68
  • 88
  • 12
    As an add on: Cmd+Shift+4 and then a space converts the mouse pointer into a "Camera". Clicking on a window with this "Camera" pointer creates a screenshot of only that window. – Nivas Feb 18 '11 at 10:54
  • 1
    Changing the 4 to a 3 makes an image of the whole screen immediately (no mouse selection) if you're into that kinda thing. – drfrogsplat Oct 23 '12 at 04:38
25

++.: show/hide hidden files on any file dialog

gentmatt
  • 49,722
  • 3
    Good one! I wish this shortcut also worked in finder windows. – Senseful Feb 07 '11 at 21:09
  • @Senseful You can set the AppleShowAllFiles key in com.apple.Finder to true to enable this in the finder. Then restart the finder. – tbodt Aug 18 '13 at 23:19
  • I couldnt get it to work, am I doing something wrong? I go to the relevant finder window and hit this shortcut – Esqarrouth May 02 '16 at 20:11
19

+: Cycle through running apps

+`: Cycle through windows for current app

+W: Close current window

+Q: Quit current app

+,: Preferences dialog for current app

+H: Hide current app (as long as it's not Photoshop)

ctrl++: Sleep all displays

gentmatt
  • 49,722
  • 1
    I guess there isn't an alternative for the Sleep all displays for the new MBA's which don't have an eject button anymore? I've setup a Hot Corner which does this, but would prefer a keyboard shortcut. – DonnaLea May 03 '12 at 05:33
  • 1
    @DonnaLea, there is alternative. Press power button instead of eject. So it's Ctrl+Shift+Power. – Denis Bazhenov Jun 17 '13 at 03:37
17

Power keys:

Ctrl+: "Are you sure you want to shut down your computer" dialog message appears:

power dialog

Ctrl++: restart the computer

Ctrl++-: shut down the computer

++: puts the computer in sleep mode

+Ctrl+: puts the monitor in sleep mode

13

Command ⌘ + Option ⌥ + Esc ⎋ brings up the force quit dialog, which is handy for killing unresponsive applications. Force quit applications

Command ⌘ + Option ⌥ + Shift ⇧ + Esc ⎋ held down for 5 seconds kills the foremost application.

daviesgeek
  • 38,901
  • 52
  • 159
  • 203
11

ctrl+++8: High contrast theme.

+` (backtick): Cycle through app's windows.

gentmatt
  • 49,722
Eimantas
  • 1,273
  • 3
  • 19
  • 30
11

++N: Create a new folder in Finder

gentmatt
  • 49,722
g .
  • 3,308
11

++H: hide all inactive application windows

This is great for focusing on a single task or works well as a kind of show desktop if you switch to Finder first (providing you have few or no windows open)

gentmatt
  • 49,722
9

For me the life saving shortcut is the quarter increment/decrement of light/sound:

+ and the increment/decrement light or sound button.

It is extremely useful with LED Cinema Display monitors.

7

+E: Put selected text into search clipboard.

Then + G to find next. In combination with regular copy-paste you can do selective search and replace very quickly and conveniently.

gentmatt
  • 49,722
Jacob Gorban
  • 1,652
  • 2
  • 15
  • 16
7

Here's a great one (for switchers) I got from the TextMate blog;

Create the folder ~/Library/KeyBindings (if it doesn't already exist) In there, create a key-binding file DefaultKeyBinding.dict In that file, put this text (including all braces & punctuation);

{
    /* home */
    "\UF729"  = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";

    /* end */
    "\UF72B"  = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";

    /* page up/down */
    "\UF72C"  = "pageUp:";
    "\UF72D"  = "pageDown:";
}

Save the file, and when you next start a Cocoa app (eg Mail, TextEdit etc) you will find that Home, End, Pg Up and Pg Down now work as they do on Windows.

It's well worth having a look at the whole of that article - he explains exactly how to make this file and how the bindings work, with information about the other keycodes etc.

daviesgeek
  • 38,901
  • 52
  • 159
  • 203
robsoft
  • 2,130
  • 4
    I tried approaches like this for a while, but then got annoyed by the apps that didn't use the keybindings. It's probably better to get used to it. (You won't have it remapped on a school's, library's, or friend's Mac for example.) I switch between OS X, Windows, and Linux all the time and while it took a little getting used to each of them, spending the time has been worth it. – Benjamin Oakes Aug 25 '10 at 21:30
  • 4
    @Benjamin: I disagree. I've been using a Mac for 3+ years now and still haven't adjusted. I agree with the concept of adjusting (for instance, Cmd+c instead of Ctrl+c), but I think the home and end thing is just too much for me for whatever reason. Also, I'm not too concerned with how I will work on friend's or library's computers, since I spend >99% of my time on my own computer. +1 for an answer that changed the way I use my Mac! – Daisy Sophia Hollman Nov 17 '10 at 14:57
  • 2
    @Benjamin: I also disagree. Having used Mac for 7+ years, I still prefer the Windows way for doing pageup/down and moving to end of line. Maybe because I use a "Win" keyboard (Razer BlackWidow) or maybe because I learned to use computer with DOS and later Windows 3.11. But in any case, my hands are used to the WinWay. :) – Martin Marconcini Feb 01 '11 at 12:11
  • Cmd+Left = Home and Cmd+Right = End. Cmd+Up and Cmd+Down go to the top and bottom of the page, so not a replacement of page up and page down. – DonnaLea May 03 '12 at 05:41
  • I've found that Ctrl+A and Ctrl+E are generally a lot nicer to use than Cmd+Left and Cmd+Right, especially if you change your CapsLock key to Ctrl, and they work in Terminal too. – Tobias Cohen Jun 27 '13 at 00:32
7

++?: Help->Search, then type any menu item text, can be just a prefix

+E: put selected text in search dialog

+G and ++G: find next/previous

+++4: Take a screenshot, press space for whole window screenshot

ctrl + mouse scroller: zoom screen

++: sleep

gentmatt
  • 49,722
piobyz
  • 537
6
  • ctrl+A: Go to the beginning of the line (works in every Cocoa textfield)

  • ctrl+E: Go to the end of the line (works in every Cocoa textfield)

  • ++H : Pop up the Home folder

  • ++D : Pop up the Desktop folder

gentmatt
  • 49,722
Studer
  • 8,779
  • 5
  • 38
  • 38
4

In a text area:
Command ⌘ + the end of the line (like End)
Command ⌘ + the beginning of the line (like Home)
Option ⌥ + jump forward one word
Option ⌥ + jump back one word

daviesgeek
  • 38,901
  • 52
  • 159
  • 203
DonnaLea
  • 101
4

While being in the application switcher (using +) cycle to an application by pressing or +; then - while still holding down - press the down arrow to see an expose view of the selected app´s windows, including minimized windows. Using the arrow keys navigate to a window you want to bring to the foreground and hit to select it.

gentmatt
  • 49,722
Asmus
  • 7,585
4

Holding down the while booting to select the startup volume. Holding down C while booting to boot from a CD/DVD in the drive.

gentmatt
  • 49,722
Ɱark Ƭ
  • 9,566
  • for anyone confused by this, 'startup volume' refers to the disk/partition to boot the OS from, not the sound level of the startup 'chime'! – drfrogsplat Oct 23 '12 at 04:43
3

+W: Close window (or tab).
++W: Close all windows.

gentmatt
  • 49,722
2

++4+space+click on a window copies the current window to the desktop.

This is very useful while taking screenshots without the need to crop. The rounded edges stay rounded. Use this with ctrl to copy the image to the clipboard.

gentmatt
  • 49,722
Nivas
  • 1,784
1

fn+F3: show all windows (in the current Space)

fn++F3: show the desktop

fn+ctrl+F3: show the "current application" windows

fn++F3: show the Exposé preference pane

dwightk
  • 7,619
  • 14
  • 47
  • 70
1

+alt+shift+V pastes plain text, SUPER useful for copying from web pages or MS Word into email, and leaving the weird formatting behind.

webmarc
  • 1,721
1

+: Cycle through applications.

+`: Cycle through the current application's windows.

: Auto fill commands and file/directory names in Terminal.

++4: Take a screenshot of a selected area.

++3: Take a screenshot of the whole screen.

gentmatt
  • 49,722
daviesgeek
  • 38,901
  • 52
  • 159
  • 203
1

Not wholly keyboard shortcut, but holding down the Option key () and bringing up a system menu often provides extensive information. For instance if you are connected to wifi, hold down and clicking on the network menu will bring up a lot of information (MAC address, IP address, signal strength, et c.) about the current network connection.

Holding and clicking on the notification icon also sets your notification status to "Do not disturb"---rather useful when discussing something on your screen with colleagues and you don't want to see Messages popping up.

Calchas
  • 209
1

+C: Copy selection

+V: Paste selection

+X: Cut selection

gentmatt
  • 49,722
daviesgeek
  • 38,901
  • 52
  • 159
  • 203
1

All of the shortcuts are my favorite!

Specifically (based on frequency of use) +H: Hide application

colons
  • 1,545
Nippysaurus
  • 3,820
1

shift+F12 or F11 - change sound volume without 'bip' sound

dwightk
  • 7,619
  • 14
  • 47
  • 70
0

ctrl+ or ctrl+ to move between Mission Control spaces (in Lion).

gentmatt
  • 49,722
0

In Finder, ++P brings up the full path. If you then hit +C in Finder, you can paste the full path of a file or folder into your Terminal or elsewhere by +V.

Ferenc
  • 101
0

⌘+z [undo] is my favorite & the one I tell the people I support to remember if they only learn one shortcut. In Finder it undoes the last operation you just performed from inadvertently beginning to rename a file or folder; or undoing an unintentional drag and drop of a file or folder into the wrong folder or undoing a move to trash operation. In applications many have multiple levels of undo which lets you step backward undoing previous edits or draws. Extremely useful in extricating yourself from sticky situations or just after having made a simple mistake.

KarlC
  • 1,323
0

ctrl+ Cycles through tabs in a web browser going to the right.

ctrl++ Cycles through tabs in a web browser going to the left.

+ Goes to the very bottom of a web page or textarea.

+ Goes to the very top of a web page or textarea.

gentmatt
  • 49,722
daviesgeek
  • 38,901
  • 52
  • 159
  • 203
0

ctrl++1 to order files by name (icon view)

gentmatt
  • 49,722
emit
  • 183
0

Zoom shortcuts, very good for presentations:

fn+++8: turn on/off zoom

fn+++=: zoom in

fn+++-: zoom out

gentmatt
  • 49,722
0

On newer keyboards, invoke Exposé to

  • fn+F3: show all windows (in the current Space)
  • fn++F3: show the desktop
  • fn+ctrl+F3: show the "current application" windows
  • fn++F3: show the Exposé preference pane

While being in Exposé,

  • cycle through windows with the arrow keys, using return to bring them into focus.
  • use and + to cycle through windows by applications (as highlighted in the Dock)
gentmatt
  • 49,722
Asmus
  • 7,585
-2

control+shift+L turn the lights off

dwightk
  • 7,619
  • 14
  • 47
  • 70
  • That doesn't turn off any lights. could you elaborate on what exact lights go off and verify it's ⌃⇧L – bmike Mar 14 '14 at 18:50