James Hubert
James Hubert

Reputation: 360

How can I customize the default indent in the Chrome Javascript console to be 2 spaces?

It's strange to me that given the Chrome console is written for JS, and the JS standard indent size is two spaces- that using tab in the console gives 4 spaces. I'm new to JS and wanted to change this setting so that pressing 'tab' while in the console gives 2 spaces but can't find instructions on how to customize it.

I tried following this tutorial on customizing Chrome Dev tools, but can't get past the first step. They say to open the Main Menu to access preferences but seem to be referring to a Dev Tools main menu (vs Chrome's menu), which I can't find.

Anything helps! Thanks.

Upvotes: 2

Views: 945

Answers (1)

ericd7
ericd7

Reputation: 471

The option can be found here:

Settings button

From that menu choose "Settings", alternatively press F1 to jump there.

Menu option

The option is located in the "Preferences" section under the "Sources" heading.

Setting location

Upvotes: 3

Related Questions