Skip to content

Instantly share code, notes, and snippets.

@raroni
Created February 24, 2016 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raroni/b1338e8a4f3e236a2b57 to your computer and use it in GitHub Desktop.
Save raroni/b1338e8a4f3e236a2b57 to your computer and use it in GitHub Desktop.
Sublime talk notes
Sublime tricks
You probably know some of these tricks, but hopefully you don't know them all.
File navigation
* Quick open (cmd + t)
* Quick open with symbols
* Quick open peek
* Undo close (cmd + shift + t)
* Show current file
* Project switch
Editor stuff
* Multiple selection (SysTime.h example)
* Macro example
* Select this and x next words iteratively (cmd + d)
* Duplicate line (shift + cmd + d)
* Mark line and go to next (cmd + l)
* Jump by empty lines (alt + up/down)
* Jump back, even across files (ctrl + minus, ctrl + shift + minus)
* Comment stuff out (cmd + shift + 7)
* Reindent (ctrl + r)
* Select outer scope: args, body, file, etc (cmd + shift + space)
* Select all occurences of word, often better than search/replace (cmd + g)
Search
* Jump to symbol, alternative to folding (cmd + r)
* Search in file
* Back and forth (cmd + g, shift + cmd + g)
* Search and replace in file
* Search and replace in chunk of file (alt + s)
* Project wide search
Build
* Project files
* My setup: test and run
C/C++
* Go to definition (cmd + alt + down)
* Open corresponding header/impl (cmd + alt + up)
* Compile error jump
Groups
* Open more groups (cmd + alt + [0-9])
* Hide file browser
* Move files between groups
* Impl. not perfect but useful most of the times
* Full screen
Commands
* Command palette, browse features (cmd + shift + p)
* Command palette, free text (set syntax example)
* Example: go to key bindings
Packages
* Install via package control
* Git integration with command palette
* New file plugin (cmd + alt + n)
* Themes - very customizable
* Typescript realtime type checker
OSX Bonus
* Key repeat speed
* Maximize shortcut (ctrl + alt + cmd + f)
@stjernegard
Copy link

As you said yourself, Sublime doesn't have a perfect implementation of split views. I would suggest looking at https://github.com/SublimeText/Origami and/or https://packagecontrol.io/packages/OrigamiEmacs (depending on what keybindings you like the best)

@raroni
Copy link
Author

raroni commented Feb 24, 2016

Thanks @stjernegard. I have looked at that but never tried it (I am afraid of plugins you know :P).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment