falconzy's Blog

My Learning Path

Sublime Text 3 - Tips

Sublime Text 3 Reference

Add Shortcut to Mac

cd /
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl
subl [fileName] (for edit in sublime text)

Distraction Free Mode

Active by:

Control + Shift + Command + F

My Setting:

{
   "line_numbers": false,      
   "gutter": false,            
   "draw_centered": true,      
   "wrap_width": 80,           
   "word_wrap": true,          
   "scroll_past_end": true     
}   

Useful Keyboard Shortcuts —OSX

Shift + Command + P         //Access the Command Palette
Command + P                 //Fast File Switching
Command + R                 //Goto Symbols
Shift + Comand + T          //Open Rencent Closed File
Command + [ or ]            //indent
Ctrl + m                    //Jump between the {}
ctrl + shift + M            //Select of all section between {}
Command + /                 //Comment
Command + Option + /        //Comment block 
Command + L                 //Line selection
Option + Arrow_key          //word by word
Shift + Command + f         //Search for whole project
Commond + Option + f        //replace
Option + Command + [1,2,..] //layout window

Enable multi-selection, you have several options:

  • Press Alt or Command and then click in each region where you require a cursor.
  • Shift + Control + (Arrow_Key)
  • Command + d: Select the current word and the next same word
  • Select a block of lines, and then press Shift + Command + L
  • Add an additional cursor at all occurrences of a word by typing Ctrl+Command+G

Suggest Package

  • Alignment
  • Emmet
  • Colorpicker
  • SublimeCodeIntel