When programming, keyboard shortcuts help a lot to improve coding speed. In this article, we will learn some of the most commonly used keyboard shortcuts in Visual Studio Code on Windows environment. In Visual Studio Code, we press Ctrl+K Ctrl+S or Ctrl+K+S to open keyboard shortcuts. With this tool, you can create or edit keyboard shortcuts in Visual Studio Code.
Below are the 30 most commonly used keyboard shortcuts in Visual Studio Code. For ease of remembering, these shortcuts are arranged in such a way that they begin with Ctrl, Shift, and Alt.
#1. Ctrl+Shift+P, F1: Show Command Palette.
#2. Ctrl+P: Quick Open, Go to File…
#3. Ctrl+Shift+F: Show Search.
#4. Ctrl+B: Toggle Sidebar visibility.
#5. Ctrl+`: Show integrated terminal.
#6. Ctrl+Shift+M: Show Problems panel.
#7. Ctrl+/: Toggle line comment.
#8. Ctrl+Tab: Open next.
#9. Ctrl+Shift+Tab: Navigate editor group history.
#10. Ctrl+Space, Ctrl+I: Trigger suggestion.
#11. Ctrl+X: Cut line (empty selection).
#12. Ctrl+.: Quick Fix.
#13. Ctrl+F: Find.
#14. Ctrl+H: Replace.
#15. Ctrl+Click, F12: Go to Definition.
#16. Ctrl+W: Close editor.
#17. Ctrl+Shift+T: Reopen closed editor.
#18. Ctrl+,: User Settings.
#19. Ctrl+\: Split editor.
#20. Ctrl+Shift+L: Select all occurrences of current selection.
#21. Ctrl+G: Go to Line…
#22. Ctrl+Enter: Insert line below.
#23. Ctrl+N: New File.
#24. Ctrl+K S: Save All.
#25. Shift+Alt+F: Format document.
#26. Shift+Alt+A: Toggle block comment.
#27. Shift+F12: Show References.
#28. Alt+Click: Insert cursor.
#29. Alt+↑: Move line up.
#30. Alt+↓: Move line down.
You can find out more at the following links: keyboard shortcus Windows, keyboard shortcus Linux, keyboard shortcus MacOS