Human readable javascripts in chrome developer tools

后端 未结 3 1711
不思量自难忘°
不思量自难忘° 2020-11-30 19:05

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 li

3条回答
  •  猫巷女王i
    2020-11-30 19:38

    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 40 pretty print button

    Firefox has it in the in the Debugger tab

    Firefox 35 prettify source button:

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

提交回复
热议问题