Skip to content

↑↓ moveEnter openEsc close

Comment or uncomment the line in Chrome DevTools

Chrome DevTools Chrome 142 · 35 shortcuts · checked Nov 2026 · Source: Google docs

In Chrome DevTools, press Cmd+/ (Mac), Ctrl+/ (Windows, Linux). Works when: sources panel.

What else uses Cmd+/? · What else uses Ctrl+/?

More Chrome DevTools shortcuts: sources and debugging

ActionMacWindowsLinux
Open a fileCmdPCtrlPCtrlP
Go to a function in the fileShiftCmdOCtrlShiftOCtrlShiftO
Go to a lineCtrlGCtrlGCtrlG
Toggle a breakpointCmdBCtrlBCtrlB
Pause or resume the scriptF8orCmd\F8orCtrl\F8orCtrl\
Step over the next callF10orCmd'F10orCtrl'F10orCtrl'
Step into the next callF11orCmd;F11orCtrl;F11orCtrl;
Step out of the functionShiftF11orShiftCmd;ShiftF11orCtrlShift;ShiftF11orCtrlShift;
Run the snippetCmdEnterCtrlEnterCtrlEnter
Save changes to the fileCmdSCtrlSCtrlS

All 12 in sources and debugging · All 35 Chrome DevTools shortcuts