giorgio79
giorgio79

Reputation: 4189

How to auto align / indent code inside Chrome browser dev tools console?

I understand it may be possible in the "sources" tab, but how about the console tab? I find it supereasy to test stuff there, and quickly aligning / indenting code would be fab. Related answer for the sources tab: Write JavaScript in Chrome developer tools

Upvotes: 1

Views: 3234

Answers (1)

Kayce Basques
Kayce Basques

Reputation: 25897

There's currently no way to auto-indent a selection of text in the Console.

The Console's built off of CodeMirror though, which does have support for that feature, so it's possible this could get added in the future. CodeMirror's keyboard shortcut for auto-indent is Shift+Tab.

You can post to the mailing list to request the feature.

Upvotes: 2

Related Questions