Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 1.89 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)
  2.  
  3. h2. General
  4.  
  5. | *⌘T* | go to file |
  6. | *⌘⌃P* | go to project |
  7. | *⌘R* | go to methods |
  8. | *⌃G* | go to line |
  9. | *⌘KB* | toggle side bar |
  10. | *⌘⇧P* | command prompt |
  11. | *⌃ `* | python console |
  12. | *⌘⇧N* | new window (useful for new project) |
  13.  
  14. h2. Editing
  15.  
  16. | *⌘L* | select line (repeat select next lines) |
  17. | *⌘D* | select word (repeat select others occurrences in context for multiple editing) |
  18. | *⌃⇧M* | select content into brackets |
  19. | *⌘⇧↩* | insert line before |
  20. | *⌘↩* | inter line after |
  21. | *⌃⇧K* | delete line |
  22. | *⌘KK* | delete from cursor to end of line |
  23. | *⌘K⌫* | delete from cursor to start of line |
  24. | *⌘⇧D* | duplicate line(s) |
  25. | *⌘J* | join lines |
  26. | *⌘KU* | upper case |
  27. | *⌘KL* | lower case |
  28. | *⌘ /* | comment |
  29. | *⌘⌥ /* | block comment |
  30. | *⌘Y* | redo or repeat |
  31. | *⌘⇧V* | past and ident |
  32. | *⌃ space* | autocomplete (repeat to select next suggestion) |
  33. | *⌃M* | jump to matching brackets |
  34. | *⌘U* | soft undo (movement undo) |
  35. | *⌘⇧U* | soft redo (movement redo) |
  36.  
  37. h2. XML/HTML
  38.  
  39. | *⌘⇧A* | select content into tag |
  40. | *⌘⌥ .* | close tag |
  41.  
  42. h2. Find/Replace
  43.  
  44. | *⌘F* | find |
  45. | *⌘⌥F* | replace |
  46. | *⌘⌥G* | find next occurrence of current word |
  47. | *⌘⌃G* | select all occurrences of current word for multiple editing |
  48. | *⌘⇧F* | find in files |
  49.  
  50. h2. Splits/Tabs
  51.  
  52. | *⌘⌥1* | single column |
  53. | *⌘⌥2* | two columns |
  54. | *⌘⌥5* | grid (4 groups) |
  55. | *⌃[1,2,3,4]* | focus group |
  56. | *⌃⇧[1,2,3,4]* | move file to group |
  57. | *⌘[1,2,3...]* | select tab |
  58.  
  59. h2. Bookmarks
  60.  
  61. | *⌘F2* | toggle bookmark |
  62. | *F2* | next bookmark |
  63. | *⇧F2* | previous bookmark |
  64. | *⌘⇧F2* | clear bookmarks |
  65.  
  66. h2. Marks
  67.  
  68. | *⌘K space* | set mark // ⌘K; for me |
  69. | *⌘KW* | delete from cursor to mark |
  70. | *⌘KA* | select from cursor to mark |
  71. | *⌘KG* | clear mark |