Sublime text 3 usage notes

ctrl+alt+f format js

ctrl+cmd+j format json

Basic Editing

⇣⇡⇠⇢ Yes  ⇣⇡⇠⇢, no  KJHL.

 Command()  
 Control  
 Option(alt)  
 Shift  
 Caps Lock (uppercase) The  
fn function key is fn  
↩︎ return/Enter

⌃ + ↩︎ or  ↩︎ add a new line below the current line and then jump to that line;  
⌃ + ⇧ + ↩︎ add a line above the current line and jump to that line;  
⌥ + ⇠/⇢ move word by word, correspondingly;  
⌥ + ⇧ + ⇠/⇢ select word by word;  
⌘ + ⇣/⇡ move to the first/last line;  
⌘ + U return to the historical cursor position ( Cancel);  
⌃ + M you can quickly switch between the opening and closing brackets;  
⌃ + ⇧ + M you can quickly select the content between the brackets;  
⌃ + ⇧ + J you can use it for indented languages ​​(such as Python);  
⌃ + ⌘ + D copy the entire line;

Selecting

⌘ + D Select the word where the current cursor is located and highlight all the positions where the word appears;    select the next position   where the word appears
again  ; use   to go back, use Esc to go back; ⌘ + D
⌘ + U

⌘ + K + K Delete from cursor to end of line;   same as
⌃ + K above ⌘ + KK

For simultaneous editing, ⌃ + ⇧ + L you can move the cursor to the end of each line 

⌘ + ⇧ + ⇠ Select the cursor to the position where the first character of the line appears  
⌃ + ⇧ + A Select the cursor to the front (including indent) position of the line

⌘ + ⇧ + L Text break up -> Convert to column editing

⌃ + K0 code expansion

Change to uppercase or lowercase

⌃ + KL Change to lowercase  
⌃ + UK to uppercase

merge

⌘ + J Merge the currently selected area into one line

Jump to the specified line

⌃ + G Then enter the line number to jump to the specified line:

combo jump

⌘ + P We can make subsequent inputs to jump to a more precise location:  
@ symbol jump: input  @symbol jumps to where the symbol symbol is located  
# Keyword jump: input  #keyword jumps to where keyword is located  
: Line number jump: input  :12 jumps to file line 12.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325566729&siteId=291194637