41

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 ?

1

2 Answers 2

40

Yes!

This has become available:

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

5
  • 2
    enabling flag may not be needed at all.
    – T.Todua
    Commented May 31, 2021 at 14:11
  • @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
    Commented Nov 1, 2021 at 14:46
  • 2
    Now we need also another option for automatically prettifying json data such as the ones in the Response sub-tab of the Network tab.
    – aderchox
    Commented Apr 24, 2022 at 8:22
  • 3
    I think people mean the network response, not Sources. Commented Sep 5, 2022 at 4:03
  • 4
    Not there anymore
    – BSUK
    Commented Apr 17 at 14:14
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.

1
  • 3
    It's not actual now. Check the post below. Commented Aug 18, 2020 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.