Skip to content

Instantly share code, notes, and snippets.

@francirp
Last active December 5, 2023 02:04
Show Gist options
  • Save francirp/b6676ab405f7f7dced0c to your computer and use it in GitHub Desktop.
Save francirp/b6676ab405f7f7dced0c to your computer and use it in GitHub Desktop.
Sublime Text Shortcuts for Mac

Critical Sublime Text Shortcuts (Mac)

Editing:

  • Copy: Command + C
  • Cut: Command + X
  • Paste: Command + V
  • Cursor to end of line: Command + Right Arrow
  • Cursor to beginning of line: Command + Left Arrow
  • Cursor to end of word: Option + Right/Left Arrow
  • Duplicate line: Command + Shift + D
  • Move line up/down: Command + Control + Up/down Arrow
  • Select next matching text: Highlight text + Command + D repeat to select another match
  • Multiple cursors: Command + Click as many times as needed
  • Increase indent: Commmand + ] can select multiple lines at once
  • Decrease indent: Command + [ can select multiple lines at once

View / File Management:

  • Go to file: Command + T
  • Find: Command + F
  • Find and Replace: Command + Shift + F
  • Close sheet: Command + W
  • Close Sublime: Command + Q
  • Show / hide left sidebar: Command + K then Command + B
  • Two column view: Command + Option + 2 I made a gist for switching between columns here
  • One column view: Command + Option + 1

Nice-to-haves

  • Paste and match indentation: Command + Shift + V if your copied text has different indentation than where you're pasting, it will automatically indent
  • Multiple cursors in a line: Option + Click and drag down great for adding the same HTML tag in front of multiple lines (like an <li> tag
  • Select from cursor to end of line: Command + Shift + Right Arrow
  • Select from cursor to end of paragraph: Command + Shift + Right Arrow then continue to hold Shift and release Command then tap down arrow as many times as needed.
  • Insert tags around selection Highlight text + Control + Shift + W

Other Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment