Difference between revisions of "Sublime Text cheat sheet"

From DiLab
Jump to: navigation, search
(Find the next word)
Line 3: Line 3:
 
Here I keep a cache of shortcuts for a quick reference.
 
Here I keep a cache of shortcuts for a quick reference.
  
{| border=1 cellspacing=0 cellpadding=4
+
{| border=1 cellspacing=0 cellpadding=2
 
|-
 
|-
 
! Task
 
! Task
Line 29: Line 29:
 
| Ctrl + R
 
| Ctrl + R
 
| Cmd + R
 
| Cmd + R
 +
|
 +
|-
 +
|
 +
=====Goto parenthesis=====
 +
| Ctrl + M
 +
| Cmd + M
 +
|
 +
|-
 +
|
 +
=====Select between parenthesis=====
 +
| Ctrl + Shift + M
 +
|
 
|
 
|
 
|-
 
|-

Revision as of 13:52, 16 October 2014

Sublime Text editor is the magic any programmer needs. Here I keep a cache of shortcuts for a quick reference.

Task shortcut in Linux shortcut in OSX Comments

Basics

Move the current line up
Ctrl + Shift + Up Cmd + Shift + Up Also works for Down
Goto line
Ctrl + ` Cmd + `
Goto method
Ctrl + R Cmd + R
Goto parenthesis
Ctrl + M Cmd + M
Select between parenthesis
Ctrl + Shift + M
Show console
Ctrl + ` Cmd + `

Multiple Selection

Select the current line
Ctrl + L Cmd + L Repeat to select next line(s)
Split selection in multiple lines
Ctrl + Shift + L Cmd + Shift + L
Select the current word
Ctrl + D Cmd + D
Find the next word

like the selected and add to the multiple cursors.

Ctrl + D Cmd + D To skip the current word: Ctrl+K, Ctrl+D. To undo the last selection: Ctrl+U
Find and select all words

like the selected and add multiple cursors.

Alt + F3
Column selection
  • Shift + RightBtn - to select a column
  • Ctrl + Shift + RightBtn - to add selection
  • Alt + Shift + RightBtn - to subtract
Multiple selection with Regexp
Ctrl + F, <Select Regexp icon (.*)>, <type your regexp>, Alt + Enter Cmd + F, <Select Regexp icon (.*)>, <type your regexp>, Opt + F