user45220
user45220

Reputation: 61

VS Code for Mac - keyboard shortcut to comment a line no longer works

I'm using Visual Studio code on MacOS, version Version 1.25.0 and I'm working with HTML and CSS files.

The keyboard shortcut "CMD+/" doesn't comment out the current line. If I open the edit menu and select Toggle Line Comment, that works fine. I checked keyboard shortcuts and the keybinding for that command shows CMD+/. I tried to re-set it, but I couldn't re-add that keyboard shortcut.

Any ideas how to troubleshoot this problem?

Upvotes: 6

Views: 9254

Answers (2)

metalheadcoder
metalheadcoder

Reputation: 525

After commenting you need to add one more space then CMD+/

Upvotes: 0

Raphael St
Raphael St

Reputation: 671

I had the same problem

Use ⌘K ⌘C to comment a line

Upvotes: 4

Related Questions