📅 2016-Aug-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ keyboard shortcuts, vscode ⬩ 📚 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 sidebarCtrl + P: Type file to openCtrl + R: Reopen recent folderCtrl + Shift + F: Search for text in filesCtrl + Shift + P or F1: Show command
palette. Dropdown of all commands that can be executed. This includes
commands from all the installed extensions.Ctrl + \: Open copy of current file in a side
splitCtrl + Shift + V: Preview current file (useful for
Markdown)Ctrl + G: Jump to line numberCtrl + Shift + O: Jump to symbol in current fileCtrl + T: Jump to symbol in current workspaceF12: Go to definitionCtrl + Alt + -: Go backCtrl + /: Toggle line commentThe full list of keyboard shortcuts can be seen here.
Some user interface tips:
Open in tabs in main split: Single-click on a filename in the sidebar opens it in the current editor tab in the main split. (Note how the filename is displayed in italics.) Double-click on a filename in the sidebar opens it in a new editor tab in the main split.
Open in tabs in second split: Single-click on a filename in the sidebar opens it in the current editor tab in the second split. Double-click on a filename in the sidebar opens it in a new editor tab in the second split.
Make currently open file own the tab: Double-click on the tab. The filename changes from italics to normal, showing that the file now owns that tab.
Set color theme based on OS theme: This is so that VSCode can automatically switch to dark theme if OS is in dark mode and switch to light theme if OS is in light mode.