Here’s a cheat sheet for the awesome Sublime Text 2 code editor with my most used key shortcuts and tricks:
(Click to enlarge)
If this is the first time you hear about Sublime then check out my 15 minute tutorial to setup Sublime Text 2, you will never go back to your old code editor :)
Multiple cursors is one of the best features of Sublime.
- Control+D to select the next occurence of the current selection.
- Control+Click to place an extra cursor
- Control+H: Find and replace
- Control+Shift+F: Find text in project files
- Control+P: Find file in the project
Always forget to use them but have seen Mark (the back-end developer in my team) using it and it is a workflow game-changing:
- Control+F2: Add/Remove bookmarks
- Shift+F2: Jump to next bookmark
- Control+’: show the console
- Control+Shift+P: Find and run all commands in Sublime (some cool commands are “Convert spaces to tabs” to clean up files as well as the use of Sublime Snippets)
- Control+K and then Control+B to show or hide the sidebar
- Control+/ to comment the selected lines (inline mode)
- Control+Shift+/ to comment the selected lines (block mode)
- Control+Shift+T to reopen a recently closed tab
- Control+Alt+Enter: Enter a CSS haiku
- Control+P, then type the name of a file and then
- : to go to a specific line
- @ to list and search all the available functions, variables, methods, classes, etc. in that file
- # to list and search any text in the file
TrendLiker.com lists hundreds of nice items and lets you know when they go on sale on Amazon.Looking for cool gift ideas?