Unlock Your Productivity: 50 Essential Visual Studio Code Keyboard Shortcuts to Elevate Your Workflow
The majority of software developers utilize Visual Studio Code (VS Code), one of the most widely used IDEs and text editors. It supports a wide range of frameworks and languages. Moreover, it is free to use and open source.
There are 50 keyboard shortcuts in this post that every developer should be aware of for simple programming. It will enable you to use VS Code more easily and save time.
1. Ctrl+N: Open a new file.
2. Ctrl + S: Save file.
3. Ctrl + Shift + S: Save as.
4. Ctrl
+X
:Cut line.
5. Ctrl
+ C
: Copy line.
6. Ctrl
+ F4
: Close file.
7. Ctrl
+ K
then Ctrl
+ W
: Close all.
8. Ctrl
+ Shift
+ T
: Reopen the closed editor.
9. Ctrl
+ Enter
: Insert a new line or insert a line below.
10. Ctrl
+ Shift
+ Enter
: Insert the line above.
11. Ctrl
+ Shift
+ N
: New window/instance.
12. Ctrl
+ Shift
+ W
: Close window/instance.
13. Ctrl
+ K
thenP
: Copy the path of the active file.
14. Ctrl
+Home
: Go to the beginning of the file.
15. Ctrl
+ End
: Go to the end of the file.
16. Home
: Go to the beginning of the line.
17. End
: Go to the end of the line.
18. Ctrl
+ K
then Ctrl
+ C
: Add line comment.
19. Ctrl
+ K
then Ctrl
+ U
: Remove line comment.
20. Ctrl
+ /
: Toggle line comment.
21. Shift
+ Alt
+ A
: Toggle block comment.
22. Ctrl
+ T
: Show all symbols.
23. Ctrl
+ G
: Go to line.
24. Ctrl
+ P
: Go to file.
25. Ctrl
+ F
: Find.
26. Ctrl
+ H
: Replace.
27. Ctrl
+ Spacebar
: Trigger suggestion.
28. Ctrl
+ .
: Quick fix.
29. Ctrl
+ K
thenM
: Change file language.
30. Ctrl
+ =
: Zoom in.
31. Ctrl
+ -
: Zoom out.
32. Ctrl
+ F4
then Ctrl
+ W
: Close editor.
33. Ctrl
+ Shift
+ .
: Replace with the next value.
34. Ctrl
+ Shift
+ /
: Replace with the previous value.
35. Ctrl
+ K
thenF
: Close folder.
36. Ctrl
+ \
: Split folder.
37. Ctrl
+ Shift
+ \
: Jump to matching bracket.
38. Shift
+ F8
: Go to the previous error/warning.
39. Alt
+ Right arrow
: Go forward.
40. Alt
+ Left arrow
: Go back.
41. Alt
+ Enter
: Select all occurrences to find a match.
42. Alt
+ Up arrow
: Move the line up.
43. Alt
+ Down arrow
: Move the line down.
44. Shift
+ Alt
+ Up arrow
: Copy line up.
45. Shift
+ Alt
+ Down arrow
: Copy the line down.
46. F12
: Go to the definition.
47. F11
: Toggle screen.
48. F2
Rename the symbol.
49. Tab
: Emmet expand.
50. F8
: Go to the next error/warning.