VS Code Key shortcuts Windows Close a tab: Ctrl + W Comment a line/ block of code: Ctrl + / Indent a line/ block of code: Tab Unindent a line/ block of code: Shift + Tab