Visual Studio Code is one of the most widely used and recommended editors because of its excellent features, powerful extensions, and all-in-one editor which allows writing code in any programming language.
It presents to you every functionality, shortcut, and configuration options in the form of a searchable list.
If you want to search for a piece of text in all your current project files, VS Code allows you to do that by either clicking the Search icon on the sidebar or by using keyboard shortcut:
Zen mode is a distraction-free view, allowing you to focus completely on your code and hide all the toolbars and buttons.
Windows: Ctrl+K Z
Mac: Cmd+K Z
Multiple cursors in VS code are great time savers when you want to make the same edits at multiple places. You can add cursors above/below the current line by the shortcut keys:
Add multiple cursor
Instead of using click and drag to select the text, you can go for various shortcuts that enhance both speed and precision. One such shortcut allows you to expand your selection word by word.
Select text word by word
Want to move a certain piece of code to a different place in the current file? Skip the usual Cut-Paste and simply move the current line or selection up/down by using this shortcut:
Move Line Up/Down
You can quickly delete the current line in one go instead of having to press the backspace or select the whole line. Use the following shortcut to achieve that:
Commenting out old code to test some newly written lines of code? VS Code can make the whole process much simpler by allowing you to turn multiple lines into comments at once.
Need more screen space? With this shortcut, you can quickly expand/collapse the sidebar when not in use.
Writing well formatted and readable code is a recommended practice. But all of us have been in situations where doing so manually just isn’t feasible. VS Code allows you to quickly format your code as well.