While you could use the standard Tab and Shift + Tab, this would require you to be at the start of the line to outdent, which is not ideal. It will save you a ton of time and I guarantee you that it will provide you with a smoother and more enjoyable development experience. Try using the simple alternative - Alt + Up/Down. Imagine you were to find the line with your mouse cursor, selecting it with a double click, copying it with a right click and selecting Copy, deleting it with Delete, finding the line you want to insert it at with your mouse cursor, creating a new line, then pasting it with a right click and selecting Paste. Moving lines around is something I do practically all day. Ctrl + D (or, well, the Mac alternative to it) comes to the rescue. Lately I've also been using Mac OS a lot and have found it incredibly challenging to select the current word with my touchpad. Selecting the line is also a pretty involved process, as you need to find the line you’re already at with your mouse cursor and then double-click it, which can usually throw you off your keyboard-based flow greatly. Imagine you were to delete your lines by finding your line with the mouse cursor, selecting your line with a double click and then pressing delete - now compare this to using Ctrl + Shift + K - you’re most likely already at the line with your keyboard cursor, so there’s virtually no overhead to deleting it. You will find that most of them have alternative shortcuts too these are just the ones that I use. So here are some that have proven very useful for me, and I use them on a daily basis (note that I use Linux/Windows but Mac OS alternatives are usually very close). I'd choose one a week and make a concerted effort to incorporate it into your daily work routine. You will probably not be able to master them all in a day. You may very well be spending an extra hour a day just because you’ve never taken the time to learn the proper keyboard shortcuts. If you spend most of your workday writing code in various languages and frameworks in Visual Studio Code, shaving off some time from using the touchpad to navigate and modify the code can greatly improve your speed of task delivery.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |