Multiple Cursors in Sublime Text

2,947 views

Published on

How to use multiple cursors and selections in Sublime Text

Published in: Software
0 Comments
29 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,947
On SlideShare
0
From Embeds
0
Number of Embeds
111
Actions
Shares
0
Downloads
57
Comments
0
Likes
29
Embeds 0
No embeds

No notes for slide

Multiple Cursors in Sublime Text

  1. 1. Multiple Cursors in Sublime Text fallroot @ FRENDS #toolcon2014
  2. 2. fallroot 秋根문추근 레진엔터테인먼트 프론트엔드 개발자
  3. 3. Symbols ⌘ Command ⌫ Delete ⌃ Control ⎋ Escape ⌥ Option / Alt ⇞ Page Up ⇧ Shift ⇟ Page Down ⇥ Tab ␣ Space ↩ Return
  4. 4. ⌘ ⌘↑ Beginning of the document ⌘↓ End of the document ⌘← Beginning of the current line ⌘→ End of the current line http://support.apple.com/kb/ht1343
  5. 5. <!doctype html> <html> ・・・・<head> ・・・・・・・・<meta charset="utf-8"> ・・・・・・・・<title>Sublime Text</title> ・・・・</head> ・・・・<body> ・・・・</body> </html> ⌘↑ ⌘↓ ⌘← ⌘→
  6. 6. ⌥ ⌥← Beginning of the previous word ⌥→ End of the next word http://support.apple.com/kb/ht1343
  7. 7. Word Separators • Preferences > Settings - Default • "word_separators" • ./()”'-:,.;<>~!@#$%^&*|+=[]{}`~? • Differ from OS X slightly
  8. 8. Word Separators var FRENDS = FRont-End Developers; var FRENDS = FRont-End Developers; var FRENDS = FRont-End Developers; ⌥← ⌥→
  9. 9. Word Separators • Non Case Sensitive • Underline not included
  10. 10. Subword TitleCase, camelCase and under_line TitleCase, camelCase and under_line ⌥→ ⌃→
  11. 11. Notice
  12. 12. Selection All ⌘A Scope ⌘⇧␣ Line ⌘L Brackets ⌃⇧M Word ⌘D Indentation ⌘⇧J Paragraph Tag ⌘⇧A
  13. 13. ⌘D • Expand Selection to Word • Quick Add Next
  14. 14. ⌘D ⌘D ⌘D ⌘D function getPrice(product) { if (!product.price) { product.price = 0; } return product.price; }
  15. 15. ⌘D ⌘D ⌘→ ⌘D C Java JavaScript Python Ruby C Java JavaScript Python Ruby
  16. 16. Quick Add & Skip Quick Add Next ⌘D Quick Skip Next ⌘K ⌘D
  17. 17. function createThumbnail(comic) { var img = document.createElement('img'); var url = 'http://cdn.lezhin.com/comic'; img.src = url + comic.comicId; document.body.appendChild(img); } ⌘D ⌘D ⌘K ⌘D
  18. 18. Soft Undo & Redo Soft Undo ⌘U Soft Redo ⌘⇧U
  19. 19. Column Selection ⌥ Drag ⌘ Click ⌃⇧↑ and ⌃⇧↓
  20. 20. Notice
  21. 21. Practice • Editing CSV • Instant Editing • Lines to Tag • Sort • CSS / SQL • Invert Selection • Extract <img>
  22. 22. References • http://www.sublimetext.com/docs/3/ • http://sublime-text-unofficial-documentation.readthedocs.org/ • http://pragprog.com/book/textmate/textmate
  23. 23. 감사합니다.

×