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 ?
Asked
Active
Viewed 1.0k times
39
-
1+1 let me know if you find the solution – Abhijit Gaikwad Jul 14 '14 at 23:16
-
@AbhijitGaikwad, see the answer below: https://stackoverflow.com/questions/24371293/chrome-dev-tools-can-i-always-have-pretty-print-enabled#answer-59254822 – Aaron Thoma Mar 15 '20 at 06:27
2 Answers
38
Yes!
This has become available:
In Dev Tools: ⋮
> Settings
(F1) > Experiments
> Automatically pretty print in the Sources Panel
.

Sameer Alibhai
- 3,092
- 4
- 36
- 36

Matt
- 481
- 4
- 10
-
2
-
@T.Todua 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. – mfcallahan Nov 01 '21 at 14:46
-
2Now we need also another option for automatically prettifying json data such as the ones in the Response sub-tab of the Network tab. – aderchox Apr 24 '22 at 08:22
-
2
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.

Kinlan
- 16,315
- 5
- 56
- 88
-
1It's not actual now. Check the [post](https://stackoverflow.com/a/59254822/9205802) below. – v.slobodzian Aug 18 '20 at 08:31