Pretty print JavaScript with Google Chrome

The built-in Developer Tools from Google Chrome allows formatting of an inline (minified) JavaScript code to a human readable format.

To format the JavaScript code, fire up the Developer Tools, go to the “Scripts” section and select the desired script. Then press the “Pretty print” button (marked with curly brackets) from the bottom of the Developer Tools. The JavaScript code is now presented in a human readable format.

If the “Pretty print” button is enabled it will affect all scripts which are opened in the Developer Tools’ “Script” tab.

About Cristian Radulescu

PHP // MySql // Linux // Android
This entry was posted in Google Chrome, JavaScript and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>