google-chromecommentsdevelopment-environment

Comment/Uncomment Chrome Developer tools


//Comment

//Ctrl+K,Ctrl+C (to comment code in Visual studio)
//Ctrl+K,Ctrl+U (to uncomment code in Visual studio)

//Ctrl+? (To Comment in Chrome Developer Tools)
//Ctrl+? (To Uncomment in Chrome Developer Tools)

I use network mapping in Chrome Development Tools. I want to comment/uncomment a block of code in javascript. Is there a way on how to comment/uncomment JavaScript code in Chrome Developer Tools? Thanks!


Solution

  • From what I can find Chrome currently doesn't currently have a shortcut (In the Elements panel) for this.

    In the below keyboard shortcuts it says you can use "Ctrl + /" or "Cmd + /" to toggle a comment in the sources panel if thats of any help.

    I believe I also read that "Ctrl + *" or "Cmd + *" may work if the above doesn't.

    Chrome Keyboard Shortcuts

    Chrome Keyboard Shortcuts Official