carsonw
carsonw

Reputation: 93

Is there a keyboard shortcut in Chrome Dev Tools to indent a block of code?

Is there a keyboard shortcut in Chrome Dev Tools to indent a block of code?

I'm used to using Command + ] in Coda 2, but that only switches panes in Chrome Dev Tools.

Upvotes: 2

Views: 1804

Answers (2)

jaredwilli
jaredwilli

Reputation: 12308

Additionally, there are other shortcuts you can use in the DevTools editor which are documented here https://developer.chrome.com/devtools/docs/shortcuts#code-editor

Upvotes: 1

ajp15243
ajp15243

Reputation: 7952

Highlighting the code (whether one or multiple lines) and hitting Tab is indenting all the lines with highlight for me. Hitting Shift+Tab will un-indent the highlighted lines.

The whole line does not need to be highlighted, just at least one character on the line.

Upvotes: 6

Related Questions