Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reactivate Google Chrome's pretty print?

Tags:

I've accidentally clicked the never show option for pretty print tool on Chrome when I was debugging an website and can't find the option to reactivate this feature again. Looked all over preferences and Googled it already, still no clue.

like image 269
Marco Avatar asked Sep 24 '18 11:09

Marco


People also ask

How do I enable pretty print in developer tools?

Yes! This has become available: In Dev Tools: ⋮ > Settings ( F1 ) > Experiments > Automatically pretty print in the Sources Panel .

How do you remove pretty prints?

You can turn off pretty-print formatting by deselecting the Pretty Print on Save option in any window that has the setting. All artifacts you save will then use the default JSON format. Any windows that are open at the time will need to be closed and reopen to deactivate pretty-printing.

How do I Unminify Javascript in Chrome?

Drill down to the file you and double-click to open it in the preview pane: If you look in the lower left corner, you'll see 2 curly brackets. By clicking on this, the minified file expands open to an unminified state.


2 Answers

I'm not sure what panel of DevTools you're looking at. If it's the Sources panel, you can manually enable or disable pretty-printing by clicking Format.

format

In general, if you see that icon anywhere, clicking it will enable or disable pretty-printing.

like image 159
Kayce Basques Avatar answered Oct 01 '22 11:10

Kayce Basques


I just did the same thing because of the really poor UI there. There's another option before "never show" with no separator, which makes these look like "never" and "show" are 2 separate options, not a single "never show" one.

enter image description here

I did find the solution though. Shut down Chrome, go to %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\ and edit the JSON file called Preferences. In it, find prettyPrintInfobarDisabled which will be set to true and change it back to false.

like image 21
Artem Russakovskii Avatar answered Oct 01 '22 12:10

Artem Russakovskii