How to set tab size in pretty print mode to 2 spaces instead of 4?

1,551 views
Skip to first unread message

alexey.p...@gmail.com

unread,
May 31, 2012, 3:26:57 PM5/31/12
to google-chrome-...@googlegroups.com
Hello, I noticed recently there's a handy feature in chrome console - You can reformat javascript source and make it pretty.

But the default tab size is 4 spaces, is it possible to change it to 2 space?

PhistucK

unread,
May 31, 2012, 3:30:48 PM5/31/12
to alexey.p...@gmail.com, google-chrome-...@googlegroups.com
I thought it was possible using this method -
1. Click on the cog wheel at the right bottom corner of the Developer Tools window.
2. Select another value in the "Indent" selection box.

But it does not seem to work. I am not sure this has ever worked, though.

PhistucK

Sam Dutton

unread,
Jun 1, 2012, 6:20:12 AM6/1/12
to PhistucK, alexey.p...@gmail.com, google-chrome-...@googlegroups.com
Works for me in 21.0.1156.1 canary for JavaScript and CSS.

Sam

Vsevolod Vlasov

unread,
Jun 9, 2012, 12:23:33 PM6/9/12
to Sam Dutton, PhistucK, alexey.p...@gmail.com, google-chrome-...@googlegroups.com
I can reproduce this on ToT.
--
Thank you,
Vsevolod Vlasov (vse...@google.com)

Reply all
Reply to author
Forward
0 new messages