Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Visual Studio Code Keyboard Shortcuts

📅 2016-Aug-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ keyboard shortcuts, visual studio code ⬩ 📚 Archive

I am finding Visual Studio Code to be very useful as a light IDE and editor for C++ and Python code on Linux.

Some keyboard shortcuts that I find useful:

Ctrl+B:       Toggle sidebar
Ctrl+P:       Search for file to open
Ctrl+Shift+F: Search for text in files
Ctrl+Shift+P: Editor commands
Ctrl+G:       Jump to line number
Ctrl+Tab:     Switch between open editors
Ctrl+Shift+O: Jump to symbol in current file
Ctrl+T:       Jump to symbol in current workspace
Ctrl+`:       Open terminal
F12:          Go to definition
Ctrl+Alt+-:   Go back
Ctrl+/:       Toggle line comment
Alt+Shift+1:  Toggle between vertical and horizontal split windows
Ctrl+\:       Side by side editing
Ctrl+K V:     Open Markdown preview on the side
Ctrl+K+W:     Close all tabs

The full list of keyboard shortcuts can be seen here.

Some user interface tips:

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧