javascript - 在源 Pane 中隐藏谷歌开发工具上的空白行

标签 javascript google-chrome user-interface developer-tools

我正在使用 chrome 的开发工具来调试应用程序。我想知道如何隐藏 Javascript 文件中出现的空行。更具体地说,在源 Pane 中,我可以看到 html 附带的 javasript页。从2001行到3454行有一个巨大的差距,然后又出现了javascript代码。我想让代码读起来更好,所以我不想查看空行。这可能吗? 谢谢。

最佳答案

您可以尝试Pretty Print option Chrome 开发工具底部:

enter image description here

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/

相关文章:

javascript - 如何在 JavaScript 中附加到 json 对象

c# - 奇数和零星的 Chrome 错误 : The chunked cookie is incomplete

ios - 无法将函数转换为方形颜色

java - 调整 TableView 大小以适合 ScrollPane

java - Swing:如何实现子组件的所有事件转发到父容器?

javascript - 从方法名称数组中定义循环中的方法

具有多个值(字符串和数字)的 JavaScript array.sort

JavaScript 无法在 HTML 页面中运行

html - Svg 数字 - 需要缩放和翻译,Chrome 和 Firefox 之间的区别

javascript - bash 上替代 sed 的问题