Top 10 VS Code Shortcuts To Increase Productivity!!
Here are the top 11 visual studio code shortcuts that every developer should know. While working, these shortcuts can save you time and boost your productivity.
-
Toggle sidebar
- Windows: CTRL+B
- Mac: CMD+B
-
Open user setttings
- Windows: CTRL+,
- Mac: CMD+,
-
Quick open
- Windows: CTRL+P
- Mac: CMD+P
-
Go to line...(redirect to the page number)
- Windows: CTRL+G
- Mac: Contorl+G
-
Add cursor to all matching selections
- Windows: CTRL+SHIFT+L
- Mac:CMD+SHIFT+L
-
Close all the editor tabs
- Windows: CTRL+K+W
- Mac:CMD+K+W
-
Toggle block comments
- Windows: CTRL+/
- Mac:CMD+/
-
Delete specific line
- Windows: CTRL+SHIFT+K
- Mac:CMD+SHIFT+K
-
Show search
- Windows: CTRL+SHIFT+F
- Mac:CMD+SHIFT+F
-
Keyboard shortcuts
- Windows: CTRL+K+CTRL+F
- Mac:CMD+K+CTRL+F
Sometimes while writing the code, you want to use the full width of the editor. Simple enough, just use this shortcut to hide or show your sidebar quickly.This will give you full width of the editor.
Visual Studio Code comes with a lot of features and settings that you can change to fit your needs. This keyboard shortcut makes it easier to get to the settings whenever necessary.
With the help of this Visual Studio Code shortcut, you can open files rapidly. After this, you just need to use the down and up arrows on your keyboard to find the file that you need to open. When you find it, hit the right arrow key
Finding code at a certain line is especially helpful when you get a compile or runtime error that specifies what line of code caused it. This keyboard shortcut eliminates the need to actually find the line yourself.
With this keyboard shortcut, all you need is to have one occurrence of the text you’re looking for in the file selected. Then, by pressing the keys of the shortcut, you’ll select all its occurrences in the file.
With this Keyboard shortcut, you can easily close all the open editors.
Click on the line you want to comment out. (If you highlight a block of code, this command will comment out each line individually.)
With the help of this Keyboard shortcut,you can quickly delete the current line in one go.
If you ever want to search for a piece of text in all your project,you just have to use this keyboard shortcut.
This will redirect to the Keyboard shortcut page.