Take control of your development environment by using more of the keyboard and less of the mouse/trackpad. As you write your code, use (Mac and Sublime) keyboard commands/shortcuts to, well... kill it!
Don't just read about these. If any of these are foreign / unfamiliar to you, be sure to practice them and make a mental note to use them when possible.
- To switch between apps.
- I prefer using this over mac gestures to switch between apps/spaces
- Hold down Cmd and press Tab multiple times to select the right app
- Don't hold down Cmd for long (just until you hit Tab) to do a quick toggle of the last app you were own
- The tilde key is beside the 1 key on your keyboard
- Used to switch between windows of the same app
- Great for when you have multiple Chrome windows. When you Chrome, use it to switch between all Chrome windows
Novice mac users minimize apps. There's no need for it. It should be removed from OS X altogether, in my opinion.
- To find in all files in the open project
- Very important and powerful; Used commonly in projects where # of files is high (ie: most projects)
- Can use regular expressions instead of plain string
- The results are in a separate tab and you can interact with them (double click a result to jump to it)
- Jump to start / end of line
- Used very commonly, in most editors / word processors
- Hold down shift to select as you do this
- Create new tab (tabs are awesome!)
- To navigate to a file (very flexible input)
- One of the most used shortcuts in ST3
- Useful for when there are many files in the project (like a Sinatra or Rails app) but start using it
- Switch between open tabs using the left/right arrow keys
- A must use, as well. Give'r a shot!
- Comment out the selected line(s)
- Open the command pallette (more on that in the videos)
Mastering your text editor will make you a more efficient and impressive developer, so here are some screencasts by some dude that will hopefully help with that!
You're likely using Sublime Text 3 (ST3) but Sublime Text 2 (ST2) videos/tutorials are very relevant since 3 and 2 are fairly similar.
Watch the following videos. Note you don't have to watch them all tonight, but do remember to come back to them. Feel free to skip or scrub content you already know:
https://tutsplus.com/course/improve-workflow-in-sublime-text-2/
- All Getting Started Videos
- Zen Coding
- Regular Expressions
- Markdown
- File / Folder Creation
- Sidebar Enhancements
- Split Windows