Skip to content

Instantly share code, notes, and snippets.

@boojums
Forked from lucasfais/gist:1207002
Last active May 3, 2018 13:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boojums/4e3ee6a790eb85746b30 to your computer and use it in GitHub Desktop.
Save boojums/4e3ee6a790eb85746b30 to your computer and use it in GitHub Desktop.
Sublime Text 3 - Linux shortcuts

Sublime Text 3 – Useful Shortcuts (Linux, Norwegian keyboard)

I changed a few of the key mappings to work with a Norwegian layout:

{ “keys”: [“ctrl+\\”], “command”: “show_panel”, “args”: {"panel": “console”, “toggle”: true} },
{ “keys”: [“ctrl+7”], “command”: “toggle_comment”, “args”: { “block”: false } },
{ “keys”: [“ctrl+9”], “command”: “indent” },
{ “keys”: [“ctrl+8”], “command”: “unindent” },

And installed the package Emmet, which is what provides some of the functions here.

General

Ctrl + p Goto prompt
Ctrl + \ python console
Ctrl + r go to methods
Ctrl + g go to line
Ctrl + kb toggle side bar
Ctrl + 0 focus side bar

Editing

Ctrl + 9 indent
Ctrl + 8 unindent
Ctrl + 7 toggle comment (entire line)
Ctrl + c copy line (if nothing selected)
Ctrl + x cut line (if nothing selected)
Ctrl + l select line (repeat select next lines)
Ctrl + L split selection into lines
Ctrl + d select word (repeat select others occurrences in context for multiple editing)
Ctrl + ⇧ + up/down move line or selection up or down
Ctrl + up/down increment/decrement number
Ctrl + t swap adjacent characters
Ctrl + m jump to matching brackets
Ctrl + M select content within brackets
Alt + W enclose selection with tag
| Ctrl + ⇧ + ↩
insert line before
Ctrl + ↩ insert line after
Ctrl + K delete entire line
Ctrl + kk delete from cursor to end of line
Ctrl + k + ⌫ delete from cursor to start of line
Ctrl + D duplicate line(s)
Ctrl + j join with line below
Ctrl + ku upper case
Ctrl + kl lower case

Find/Replace

Ctrl + f find
Ctrl + h find & replace
Ctrl ⇧ + f find & replace in files

Splits/Tabs

Ctrl + PgUp/PgDn Cycle through tabs
Alt + [NUM] Swith to NUM tab
Alt + ⇧ + 1 Single column
Alt + ⇧ + 2 Two columns
Alt + ⇧ + 3 Three columns
Alt + ⇧ + 4 Four columns
Alt + ⇧ + 5 Grid
Alt + ⇧ + 8 Two rows
Ctrl + [NUM] Jump to pane NUM
Ctrl + ⇧ + [NUM] Move file to pane NUM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment