Skip to content

Instantly share code, notes, and snippets.

@etasi
Created February 15, 2015 18:11
Show Gist options
  • Select an option

  • Save etasi/eeedd72841c91a197346 to your computer and use it in GitHub Desktop.

Select an option

Save etasi/eeedd72841c91a197346 to your computer and use it in GitHub Desktop.
Sublime: Keyboard Shortcuts - Linux/Windows

.. sublime: wordWrap false

Keyboard Shortcuts - Windows/Linux

.. warning:: This topic is a draft and may contain wrong information.

Editing

+-----------------+-----------------------------------------------------------+ | Keypress | Command | +=================+===========================================================+ | Ctrl + X | Cut line | +-----------------+-----------------------------------------------------------+ | Ctrl + ↩ | Insert line after | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + ↩ | Insert line before | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + ↑ | Move line/selection up | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + ↓ | Move line/selection down | +-----------------+-----------------------------------------------------------+ | Ctrl + L | Select line - Repeat to select next lines | +-----------------+-----------------------------------------------------------+ | Ctrl + D | Select word - Repeat select others occurrences | +-----------------+-----------------------------------------------------------+ | Ctrl + M | Jump to closing parentheses | | | Repeat to jump to opening parentheses | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + M | Select all contents of the current parentheses | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + K | Delete Line | +-----------------+-----------------------------------------------------------+ | Ctrl + KK | Delete from cursor to end of line | +-----------------+-----------------------------------------------------------+ | Ctrl + K + ⌫ | Delete from cursor to start of line | +-----------------+-----------------------------------------------------------+ | Ctrl + ] | Indent current line(s) | +-----------------+-----------------------------------------------------------+ | Ctrl + [ | Un-indent current line(s) | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + D | Duplicate line(s) | +-----------------+-----------------------------------------------------------+ | Ctrl + J | Join line below to the end of the current line | +-----------------+-----------------------------------------------------------+ | Ctrl + / | Comment/un-comment current line | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + / | Block comment current selection | +-----------------+-----------------------------------------------------------+ | Ctrl + Y | Redo, or repeat last keyboard shortcut command | +-----------------+-----------------------------------------------------------+ | Ctrl + ⇧ + V | Paste and indent correctly | +-----------------+-----------------------------------------------------------+ | Ctrl + Space | Select next auto-complete suggestion | +-----------------+-----------------------------------------------------------+ | Ctrl + U | soft undo; jumps to your last change before | | | undoing change when repeated | +-----------------+-----------------------------------------------------------+ | Alt + ⇧ + W | Wrap Selection in html tag | +-----------------+-----------------------------------------------------------+

Windows

+-------------------+---------------------------------------------------------+
| Ctrl + Alt + Up   | Column selection up                                     |
+-------------------+---------------------------------------------------------+
| Ctrl + Alt + Down | Column selection down                                   |
+-------------------+---------------------------------------------------------+

Linux
`````
+-----------------+-----------------------------------------------------------+
| Alt + ⇧ + Up    | Column selection up                                       |
+-----------------+-----------------------------------------------------------+
| Alt + ⇧ + Down  | Column selection down                                     |
+-----------------+-----------------------------------------------------------+

Navigation/Goto Anywhere
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Ctrl + P        | Quick-open files by name                                  |
+-----------------+-----------------------------------------------------------+
| Ctrl + R        | Goto symbol                                               |
+-----------------+-----------------------------------------------------------+
| Ctrl + ;        | Goto word in current file                                 |
+-----------------+-----------------------------------------------------------+
| Ctrl + G        | Goto line in current file                                 |
+-----------------+-----------------------------------------------------------+

General
------------------------

+-----------------------+-----------------------------------------------------+
| Keypress              | Command                                             |
+=======================+=====================================================+
| Ctrl + ⇧ + P          | Command prompt                                      |
+-----------------------+-----------------------------------------------------+
| Ctrl + KB             | Toggle side bar                                     |
+-----------------------+-----------------------------------------------------+
| Ctrl + ⇧ + Alt + P    | Show scope in status bar                            |
+-----------------------+-----------------------------------------------------+

Find/Replace
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Ctrl + F        | Find                                                      |
+-----------------+-----------------------------------------------------------+
| Ctrl + H        | Replace                                                   |
+-----------------+-----------------------------------------------------------+
| Ctrl + ⇧ + F    | Find in files                                             |
+-----------------+-----------------------------------------------------------+

Tabs
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Ctrl + ⇧ + t    | Open last closed tab                                      |
+-----------------+-----------------------------------------------------------+
| Ctrl + PgUp     | Cycle up through tabs                                     |
+-----------------+-----------------------------------------------------------+
| Ctrl + PgDn     | Cycle down through tabs                                   |
+-----------------+-----------------------------------------------------------+
| Ctrl + ⇆        | Find in files                                             |
+-----------------+-----------------------------------------------------------+
| Ctrl + W        | Close current tab                                         |
+-----------------+-----------------------------------------------------------+
| Alt + [NUM]     | Switch to tab number [NUM] where [NUM] <= number of tabs  |
+-----------------+-----------------------------------------------------------+

Split window
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Alt + ⇧ + 2     | Split view into two columns                               |
+-----------------+-----------------------------------------------------------+
| Alt + ⇧ + 1     | Revert view to single column                              |
+-----------------+-----------------------------------------------------------+
| Alt + ⇧ + 5     | Set view to grid (4 groups)                               |
+-----------------+-----------------------------------------------------------+
| Ctrl + [NUM]    | Jump to group where num is 1-4                            |
+-----------------+-----------------------------------------------------------+
| Ctrl + ⇧ + [NUM]| Move file to specified group where num is 1-4             |
+-----------------+-----------------------------------------------------------+

Bookmarks
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Ctrl + F2       | Toggle bookmark                                           |
+-----------------+-----------------------------------------------------------+
| F2              | Next bookmark                                             |
+-----------------+-----------------------------------------------------------+
| ⇧ + F2          | Previous bookmark                                         |
+-----------------+-----------------------------------------------------------+
| Ctrl + ⇧ + F2   | Clear bookmarks                                           |
+-----------------+-----------------------------------------------------------+

Text manipulation
------------------------

+-----------------+-----------------------------------------------------------+
| Keypress        | Command                                                   |
+=================+===========================================================+
| Ctrl + KU       | Transform to Uppercase                                    |
+-----------------+-----------------------------------------------------------+
| Ctrl + KL       | Transform to Lowercase                                    |
+-----------------+-----------------------------------------------------------+

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