This is quite an old thread, but unfortunately still relevant. Word wrap only works in the Elements panel. From the documentation: As with any text editor you can choose to wrap long lines of code in the Elements panel. The link in Leon's answer actually refers to the Network panel, although several of the comments suggest that others are also looking at this more generally; e.g. It would be good if wordwrap is offered for all content. and ... I would donate my left kidney for word wrap! Anyway, if you're mainly editing html, you're in luck - just use the Elements panel instead of the Sources panel. Unfortunately, most of my editing is with JS. So I'll open a new issue in Chromium and post a link back here, in case anyone wants to support it.
4条答案
按热度按时间qjp7pelc1#
看起来现在还没有自动换行:(而且看起来人们一直在问,我刚刚也贴出了我对自动换行的投票
https://code.google.com/p/chromium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&groupby=&sort=&id=73193
编辑:现在看起来像是默认的功能(点击右上角的三个点,然后点击设置):
wecizke32#
This is quite an old thread, but unfortunately still relevant.
Word wrap only works in the Elements panel. From the documentation:
As with any text editor you can choose to wrap long lines of code in the Elements panel.
The link in Leon's answer actually refers to the Network panel, although several of the comments suggest that others are also looking at this more generally; e.g.
It would be good if wordwrap is offered for all content.
and ...
I would donate my left kidney for word wrap!
Anyway, if you're mainly editing html, you're in luck - just use the Elements panel instead of the Sources panel. Unfortunately, most of my editing is with JS.
So I'll open a new issue in Chromium and post a link back here, in case anyone wants to support it.
9o685dep3#
在Chrome的Issue 167287: Feature request: word wrap for sources panel中,开发者表示:
[2014年10月13日]
在这里,我们非常依赖代码镜像功能。
上游错误:https://github.com/codemirror/CodeMirror/issues/1356
以及:
[2017年12月14日]
我有点担心这方面的性能问题。当我们有一个更好的显示大型/小型文件的方法时,我会再次访问。[状态:分配→ WontFix]
但是,修复CodeMirror问题的实际工作被分解为两部分,每部分都有自己的bug:
因此,他们担心 Package 超长的行会使编辑器停止工作。如果您能说服他们,不管是否实际改进CodeMirror,他们 * 可能 * 愿意在“源”选项卡中添加一个 Package 选项。
所以去乱搞:
eiee3dmh4#
在网络〉响应选项卡中,页脚中的{ }很好地 Package 了我的HTML。\KimBley