

Use this in combination with the Open any file shortcut to open a file in your Sublime Text workspace.
#Sublime text mac os
Hit Ctrl + G or ^ + G on Mac OS to goto any given line number. Goto line numberĮrror reporters or loggers always direct you to a specific line number in any given file. Hit Ctrl + Shift + D (Duplicate line) then Ctrl + X (Cut) and Ctrl + V (Paste) or ⌘ + ⇧ + D (Duplicate Line) then ⌘ + X (Cut) and ⌘ + V (Paste). Though being DRY is a very good software practice, you may have had to copy and paste a line of code/text numerous times when working on a project.įor this, the combination of the following keys will make your life easier. I toggle my Sublime Text sidebar by hitting the following keys in succession Ctrl + K and Ctrl + B or ⌘ + K and ⌘ + B on Mac OS. For times like these, I need more screen space for code. I personally like having a distraction free screen and seldom resort to using more than one screen. Some people prefer working with more than one monitor.

Just hit Ctrl + P or ⌘ + P to open any file in your workspace. While you could search for a filename through your operating system easily, Sublime Text allows you to goto any filename fairly quickly. And if you are anything like me, you’d end up carrying a cheat sheet to look up each time.įor Sublime Text, all you have to do is hit Ctrl + R or ⌘ + R on Mac OS to navigate to any function/class/symbol in the file you are currently editing.
#Sublime text how to
This can cause a lot of confusion on how to navigate a file. IDEs have a shortcut key to goto a class name, a different one to goto a function name and another one for symbols. Once you have imported your project into Sublime Text workspace, using the following 7 shortcuts will help you get close to being a Sublime Text power user.

This blog is also written using Sublime Text. I began with writing code in Notepad++ long long time ago, then tried IDEs as well but nothing came as close to working smoothly as Sublime Text. Through my career as a software developer, I have appreciated one text editor the most, Sublime Text.
