Dominik Feininger
Dominik Feininger

Reputation: 456

Chrome DevTools Toggle Comment Shortcut not working

I started to use Chrome workspaces which is an awesome feature. Unfortunately the "toggle comment" shortcut (http://anti-code.com/devtools-cheatsheet/) "Cmd+/" is not working. When I press "Cmd+7" nothing happens or if the "switch panels" is on, then the panels switch. When pressing "Cmd + shift + 7" the help menu shows up from the top bar. How can I fix this. I really need this toggle comment shortcut.

Upvotes: 3

Views: 2156

Answers (2)

jaredwilli
jaredwilli

Reputation: 12348

I just checked that the shortcuts you are trying to use do actually work. I wrote the cheatsheet btw. The shortcuts work when you are using Chrome Canary, and you have to set up a workspace to work on the code that way. Also, Cmd+7 for me jumps to the 7th tab in my DevTools. Perhaps you have some other program overriding the shortcut key for that.

For more information on workspaces

There's also a more comprehensive list of shortcuts here.

Upvotes: 0

Michel
Michel

Reputation: 28349

There is a bug with some shortcuts that require to press a modifier key on non-english keyboard. I reported the issue here.

Workaround for Windows/Linux :

If you are using a german keyboard layout, pressing Ctrl + * should do the trick in the meantime. Make sure you use the * that is not on the numerical keyboard.

Workaround for Mac OS :

Use a keyboard layout editor, for example Ukelele, so as you can output a / without having to press Shift or any other modifier key.

Upvotes: 1

Related Questions