Tuesday, May 21, 2024
180
rated 0 times [  181] [ 1]  / answers: 1 / hits: 73157  / 14 Years ago, sun, december 19, 2010, 12:00:00

does anybody know whether Chrome Developer Tools can format javascripts into human readable form ? Some kind of beautifier would be handy. Let say that I'm using some JS library and I need to instantiate its object, so that I should know what to put into constructor. But searching through this huge library that has 4 lines in the Chrome Developer Tools user interface is quite annoying...



Otherwise the server side needs to take care of implementing dev mode that supplies javascript files that are not minified ...


More From » google-chrome-devtools

 Answers
33

Some browsers have a Pretty print button that looks like this {} and it appears for HTML, JS, and/or CSS depending on the browser.



Chrome has it in the in the Sources tab:



Chrome



Firefox has it in the in the Debugger tab



Firefox:



The position of these buttons may change, but it should always be in there


[#94550] Thursday, December 16, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kourtney

Total Points: 368
Total Questions: 103
Total Answers: 85

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
kourtney questions
Sun, Oct 4, 20, 00:00, 4 Years ago
Tue, Oct 29, 19, 00:00, 5 Years ago
Thu, Apr 4, 19, 00:00, 5 Years ago
Fri, Mar 1, 19, 00:00, 5 Years ago
;