Advertisement
Guest User

Untitled

a guest
May 28th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. Mouse
  2. =====
  3.  
  4. Windows/Linux
  5. -------------
  6.  
  7. Building blocks:
  8.  
  9. * Positive/negative:
  10. * Add to selection: <kbd>Ctrl</kbd>
  11. * Subtract from selection: <kbd>Alt</kbd> (only works with block selection in v3; presumably bug)
  12. * Selection type:
  13. * Linear selection: <kbd>Left Click</kbd>
  14. * Block selection: <kbd>Middle Click</kbd> or <kbd>Shift</kbd> + <kbd>Right Click</kbd>
  15.  
  16. Combine as you see fit. For example:
  17.  
  18. * Add to selection: <kbd>Ctrl</kbd> + <kbd>Left Click</kbd> (and optionally drag)
  19. * Subtract from selection: <kbd>Alt</kbd> + <kbd>Left Click</kbd> (and drag--this combination doesn't work in Sublime Text 3, but supposedly it works in 2)
  20. * Add block selection: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right Click</kbd> (and drag)
  21. * Subtract block selection: <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Right Click</kbd> (and drag)
  22.  
  23. Mac OS X
  24. --------
  25.  
  26. Building blocks:
  27.  
  28. * Positive/negative:
  29. * Add to selection: <kbd>⌘</kbd>
  30. * Subtract from selection: <kbd>⇧⌘</kbd> (only works with block selection in v3; presumably bug)
  31. * Selection type:
  32. * Linear selection: <kbd>Left Click</kbd>
  33. * Block selection: <kbd>Middle Click</kbd> or <kbd>⌥</kbd> + <kbd>Left Click</kbd>
  34.  
  35. Combine as you see fit. For example:
  36.  
  37. * Add to selection: <kbd>⌘</kbd> + <kbd>Left Click</kbd> (and optionally drag)
  38. * Subtract from selection: <kbd>⇧⌘</kbd> + <kbd>Left Click</kbd> (and drag--this combination doesn't work in Sublime Text 3, but supposedly it works in 2)
  39. * Add block selection: <kbd>⌥⌘</kbd> + <kbd>Left Click</kbd> (and drag)
  40. * Subtract block selection: <kbd>⌥⇧⌘</kbd> + <kbd>Left Click</kbd> (and drag)
  41.  
  42. Keyboard
  43. ========
  44.  
  45. Windows/Linux
  46. -------------
  47.  
  48. * Return to single selection mode: <kbd>Esc</kbd>
  49. * Extend selection upward/downward at all carets: <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Up</kbd>/<kbd>Down</kbd>
  50. * Extend selection leftward/rightward at all carets: <kbd>Shift</kbd> + <kbd>Left</kbd>/<kbd>Right</kbd>
  51. * Move all carets up/down/left/right, and clear selection: <kbd>Up</kbd>/<kbd>Down</kbd>/<kbd>Left</kbd>/<kbd>Right</kbd>
  52. * Undo the last selection motion: <kbd>Ctrl</kbd> + <kbd>U</kbd>
  53. * Add next occurrence of selected text to selection: <kbd>Ctrl</kbd> + <kbd>D</kbd>
  54. * Add all occurrences of the selected text to the selection: <kbd>Alt</kbd> + <kbd>F3</kbd>
  55. * Rotate between occurrences of selected text (single selection): <kbd>Ctrl</kbd> + <kbd>F3</kbd>
  56. * Turn a single linear selection into a block selection, with a caret at the end of the selected text in each line: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd>
  57.  
  58. Mac OS X
  59. --------
  60.  
  61. * Return to single selection mode: <kbd>⎋</kbd> (that's the Mac symbol for Escape)
  62. * Extend selection upward/downward at all carets: <kbd>⌃⇧⇡</kbd>, <kbd>⌃⇧⇣</kbd> (See note)
  63. * Extend selection leftward/rightward at all carets: <kbd>⇧⇠</kbd>/<kbd>⇧⇢</kbd>
  64. * Move all carets up/down/left/right and clear selection: <kbd>⇠</kbd>, <kbd>⇡</kbd>, <kbd>⇣</kbd>, <kbd>⇢</kbd>
  65. * Undo the last selection motion: <kbd>⌘U</kbd>
  66. * Add next occurrence of selected text to selection: <kbd>⌘D</kbd>
  67. * Add all occurrences of the selected text to the selection: <kbd>⌃⌘G</kbd>
  68. * Rotate between occurrences of selected text (single selection): I'm too lazy to open my MacBook to figure it out, and it's not documented, but it most certainly exists.
  69. * Turn a single linear selection into a block selection, with a caret at the end of the selected text in each line: <kbd>⇧⌘L</kbd>
  70.  
  71. **Note**
  72.  
  73. On Yosemite, <kbd>⌃⇧⇡</kbd> and <kbd>⌃⇧⇣</kbd> are system keyboard shortcuts by default. If you want them to work in Sublime Text, you will need to change them:
  74.  
  75. 1. Open `System Preferences`.
  76. 2. Click the `Keyboard` category.
  77. 3. Select `Mission Control` in the left listbox.
  78. 4. Change the keyboard shortcuts for `Mission Control` and `Application windows` (or disable them). I use <kbd>⌃⌥⇡</kbd> and <kbd>⌃⌥⇣</kbd>.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement