![]() ![]() As I mentioned above, a reason I like Sublime is because you can customise the editor, so on the Key Bindings section you can overwrite the bindings by pasting the relevant overwrite on the right hand pane. To see them all go to “Preferences > Key Bindings”. Full List of ShortcutsĪbove are just a few of the shortcuts, there are a lot more out there. Then you can unfold individual methods that you are interested in. I don’t use this too much, but when looking at new code, I use the code folding to make it easier to look at all the methods, especially if there is a lot of code. ![]() ![]() You can also create multiple cursors by holding the ctrl key down and clicking where you want the additional cursors. So once you have your line of code, highlight it all and then press the [ key, and that will put square brackets around it. They are extremely useful when performing repetitive actions. One way to do it would be find and replace, another way is highlight a variable, then press Ctrl + d, this will then highlight the next occurrence of that variable, keep pressing Ctrl + d until all the variables are selected and change as required:Īnother feature of sublime is multiple cursors. I always try to refactor code to keep improving it, and sometimes that includes renaming variables so they make more sense. Increase and decreases the current lines indentation when the cursor is at any point on the line Here are some other shortcuts that I use regularly: Shortcutįind/Jump to a function on the current fileĬomments out the current line when the cursor is at any point on the lineĭecreases and increases text size on the current file This can be extremely useful if you have an error on a page. The above three methods as described will just affect the current page you are on, you can enter the filename before the operator to perform the action on other files. A list of words will appear, type the word you want to find and they will highlight.Press Ctrl + p, then A list of functions will appear, start typing the function name or use the up/down arrows to highlight the correct function and click enter to jump to it.A list of files will appear, use the up/down arrow keys and then press enter to open it.Now type in the filename or file path and filename.This shortcut is extremely useful and quick way opening files, especially on big projects with lots of nested directories. I wasn’t convinced to begin with, but now I’m sold and I love it. The following shortcuts will help eliminate the use of the mouse and get to where you want faster. I’m hoping over the course of this post, you will learn something new or think of ways to improve productivity whilst using it. There are various reasons for this: it’s fast, reliable, extendable and feature rich. In the past I have used a variety of different editors, but over the last four or five years, I have stuck with Sublime Text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |