Chrome Dev Tools - can I always have pretty print enabled?
Asked Answered
L

2

40

As part of our build the code is minimised I'm currently debugging some js and constantly have to click the pretty print button in chrome dev tools. Is there a way to permanently enable pretty printing in chrome dev tools ?

Lorielorien answered 23/6, 2014 at 16:54 Comment(1)
@AbhijitGaikwad, see the answer below: #24371793Asthmatic
E
1

No it is not possible yet. The way that I do is that I manage it through the build process to not minify the CSS and JS.

Erlking answered 2/11, 2015 at 15:16 Comment(1)
It's not actual now. Check the post below.Eustasius
B
40

Yes!

This has become available:

In Dev Tools:  > Settings (F1) > Experiments > Automatically pretty print in the Sources Panel.

Beaux answered 9/12, 2019 at 18:40 Comment(5)
enabling flag may not be needed at all.Velate
@Velate is correct - In Chrome 95, I was able to find the option in Dev Tools > Settings > Experiments > Automatically Pretty print.. without the need to enable any flag.Aerophyte
Now we need also another option for automatically prettifying json data such as the ones in the Response sub-tab of the Network tab.Chatav
I think people mean the network response, not Sources.Phalanstery
Not there anymoreKnoxville
E
1

No it is not possible yet. The way that I do is that I manage it through the build process to not minify the CSS and JS.

Erlking answered 2/11, 2015 at 15:16 Comment(1)
It's not actual now. Check the post below.Eustasius

© 2022 - 2024 — McMap. All rights reserved.