Remove line comment: the shortcut in both apps
On Windows it is usually Ctrl+K Ctrl+U (2 of 2 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| Visual StudioUncomment the selection | — | CtrlK,CtrlU | — |
| VS CodeRemove line comment | CmdK,CmdU | CtrlK,CtrlU | CtrlK,CtrlU |
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.