Shortcut

Chrome DevTools Comment or Uncomment a Line Shortcut

The Chrome DevTools shortcut to comment or uncomment a line is Ctrl + / on Windows. On Mac, press Cmd + /.

Quick Answer

Windows
Ctrl+/
Mac
Cmd+/
Web
Not confirmed yet
Chrome DevToolsShortcut

Comment or Uncomment a Line

Windows
Ctrl+/

Adds or removes the comment marker on the line or selection.

Learn More

How to comment or uncomment a line in Chrome DevTools

  1. Open Chrome DevTools and go to where you want to comment or uncomment a line.
  2. Press Ctrl + / on Windows or Cmd + / on Mac.

Chrome DevTools Comment or Uncomment a Line Shortcut for Windows

Press Ctrl + /.

Chrome DevTools Comment or Uncomment a Line Shortcut for Mac

Press Cmd + /.

Chrome DevTools Comment or Uncomment a Line Shortcut for Chrome DevTools Web

We haven't confirmed a Chrome DevTools Web shortcut for this yet.

Related Keyboard Shortcuts

Frequently asked questions

What is the Chrome DevTools comment or uncomment a line shortcut?

On Windows, press Ctrl + /. On a Mac, press Cmd + /.

Is there a Mac shortcut to comment or uncomment a line in Chrome DevTools?

Yes: Cmd + /.

Does it work in Chrome DevTools for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify