This key-binding lets you search for a file and open it depending on the project folder. This key-binding is my most significant time-saver and is worth remembering. Here is a little demo of what that might look like, and hopefully, you can see the capabilities of this key-binding. To use this key-binding, you first have to select a sequence of characters, and then once you press ctrl + d it selects all the other appearances of the selected word. This key-binding works as a great alternative to the find-and-replace shortcut. This key-binding isn't a game-changer for me, but it is nice to know if you don't like reaching for the mouse while coding.ģ - Selecting multiple occurrences of a word The difference between using this and simply pressing the up or down keys is that it keeps your cursor in the same position as if you were using a mouse to scroll instead of moving the cursor.Ī typical scenario of when this key-binding comes in handy is when I want to remember what a particular function does without losing the line/block of code that I am currently working on. This key-binding is just another way to scroll. If there is a key-binding, I can't live without it's this one. This key-binding is probably the one that I use the most. This key-binding lets me organise my code on the fly to make it easy to keep to a style guide. For example, I arrange my CSS code according to specificity. When I code, I like to place functions in a specific order as if I were adhering to a style guide. Instead of having to cut and paste it, you can simply move the lines up or down. If you are someone who cuts and pastes code to change the order that statements execute, you might find this key-binding very useful. Key binding: ctrl + shift + up or ctrl + shift + down Without further ado, let's get straight into it! So if you don't like the specific key combination, you could change it to something that suits your typing style or how your fingers rest on the keyboard. I'm doing this to emphasise that key-bindings are settings on Sublime Text that can be changed. So if there is one thing that I would like you to take away, there is no need to memorise all the shortcuts but instead, pick one or two that you find most useful.įrom this point on, I'll use the word key-binding instead of shortcut with reference to Sublime Text. After using them a couple of times, it becomes difficult to forget. I didn't memorise them all at once, but I stumbled across one or two interesting ones in a blog or YouTube video. The key bindings in this list are ones that I have memorised after needing to use them many times. So in this post, I want to go over my favourite non-generic key-bindings that I can't live without. The truth is most people never take it upon themselves to discover the shortcuts of an app or website that they regularly use, myself included. There are plenty of time-saving shortcuts, and I don't think people talk about them enough. How much time has the shortcuts ctrl + c + ctrl + v saved you? If you could recall every line of code, every paragraph of text, every One Time Pin or URL that you copied and pasted instead of typing out, how much time would that add up to? And if more shortcuts existed that could turn a 30-minute task into 10 minutes, then surely that shortcut must be worth learning.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |