Keyboard shortcut cheat sheet

Definitions

    • Command

    • Option (Alt)

    • Control

    • Shift

Applications

  • ⌘N

    • Create a new file.

  • ⌘O

    • Open a file.

  • ⌘S

    • Save this file.

  • ⌘W

    • Close this window or tab.

  • ⌘Q

    • Fully quit this application.

  • ⌘Tab

    • Go to previous application.

  • ⌘Tab + Hold ⌘

    • Will display a list of all the open applications.

    • While holding if you press Tab you can select which app to view.

    • Pressing Q while still holding will quit that application in the background.

    • Pressing H while still holding will hide that application.

    • Pressing 1 while still holding will show all the windows open for that app.

  • ⌘`

    • — ‘Will cycle forwards through the last viewed windows in this application.’

  • ⌘⇧`

    • — ‘Will cycle backwards through the last viewed windows.’

Text

  • ⌘A

    • Select all the text.

  • ⌘C

    • Copy the selected text.

  • ⌘X

    • Cut the selected text.

  • ⌘V

    • Paste the previously copied item.

  • ⌘Z

    • Undo the recent change.

  • ⌘⇧Z

    • Redo the recent undo.

  • ⌘F

    • Find within this file.

  • ⌘G

    • Find next matching item.

  • ⌘⇧G

    • Find previous matching item.

  • ⌘➔

    • Move to the end of the line.

  • ⌘←

    • Move to the start of the line.

  • ⌥➔

    • Move to the next word.

  • ⌥←

    • Move to the previous word.

  • ⌘↑

    • Move to the top of the file.

  • ⌘↓

    • Move to the bottom of the file.

  • Shift+Arrows

    • Highlight text.

    • Can be combined with &

Files & folders

  • Return

    • Rename a file or folder.

  • Space

    • Trigger a preview.

  • ⌘N

    • Make a new Finder window.

  • ⌘⇧N

    • Make a new folder in this location.

  • ⌘ Delete

    • Move a file/folder to the trash.

  • ⌘O

    • Open a file in the default application.

  • ⌘D

    • Duplicate the file/folder.

  • Arrows

    • Move around the files.

  • ⌘1, ⌘2, etc.

    • Switch between “Icon”, “List” and “Column” views.

Web browser

  • ⌘R

    • Refresh the current website.

  • ⌘L

    • Focus the URL bar.

  • ⌘T

    • Create a new tab.

  • ⌘⇧T

    • Reopen a closed tab.

  • ⌘1, ⌘2, etc.

    • Switch to tab by number.

  • Delete, ⌘[

    • Go back.

  • ⌘]

    • Go forward.

  • ⌘⇧]

    • Go to the next tab.

  • ⌘⇧[

    • Go to the previous tab.

  • Tab

    • Move around items in the website.

  • Return / Space

    • Activate a link or control.

  • Space

    • Scroll down a screen.

  • Shift+Space

    • Scroll up a screen.

Code editor

  • ⌘⌥N

    • New file in current folder.

    • If the advance new file package is installed.

  • ⌘P

    • Quick open a file.

    • Works when you’ve opened a folder in the editor.

  • ⌘1, ⌘2, etc

    • Switch to tab by number.

  • Tab, ⌘]

    • Indent, works on multiple lines.

  • Shift+Tab, ⌘[

    • Outdent, works on multiple lines.

  • ⌘⇧]

    • Go to the next tab/file.

  • ⌘⇧[

    • Go to the previous tab/file.

  • ⌘⇧P

    • Execute a command in the editor.

  • ⌘R

    • Filter & find by keyword in this file.

  • ⌘⌥F

    • Find and replace within this file.

  • ⌘⇧F

    • Find and replace within this folder.

  • ⌃⇧K

    • Delete this line.

  • ⌃⌘↑

    • Move a line up.

  • ⌃⌘↓

    • Move a line down.

  • ⌘J

    • Join the line below with this line.

  • ⌘⇧D

    • Duplicate this line.