我正在使用 chrome 的开发工具来调试应用程序。我想知道如何隐藏 Javascript 文件中出现的空行。更具体地说,在源 Pane 中,我可以看到 html 附带的 javasript页。从2001行到3454行有一个巨大的差距,然后又出现了javascript代码。我想让代码读起来更好,所以我不想查看空行。这可能吗? 谢谢。
最佳答案
您可以尝试Pretty Print option Chrome 开发工具底部:
If you have trouble trying to read and debug minified JavaScript in the DevTools, a pretty printing option is available to make life easier. ...by clicking on the curly brace ("Pretty Print") icon in the bottom left corner, the JavaScript is transformed into a more human readable form. This is also more easy for debugging and setting breakpoints.
关于javascript - 在源 Pane 中隐藏谷歌开发工具上的空白行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30268111/