Skip to content

↑↓ moveEnter openEsc close

Remove line comment: the shortcut in both apps

2 apps · Mac, Windows and Linux

On Windows it is usually Ctrl+K Ctrl+U (2 of 2 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
Visual StudioUncomment the selection—CtrlK,CtrlU—
VS CodeRemove line commentCmdK,CmdUCtrlK,CtrlUCtrlK,CtrlU

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+K Cmd+U in VS Code.
  • Windows: every app here uses CtrlK,CtrlU.
  • Linux: Ctrl+K Ctrl+U in VS Code.

Learn it by pressing it: Visual Studio shortcuts practice or VS Code shortcuts practice.