如何禁用强制软包装?

ab1*_*b11 9 intellij-idea

当我打开带有很长行的文件时,IntelliJ 强行换行并给出此消息this document contains very long lines. soft wraps were forcibly enabled to improve editor performance

按照此链接中的说明,我在常规编辑器设置中禁用了软包装,并使用帮助菜单创建了一个 idea.properties 文件,在其中添加了'editor.soft.wrap.force.limit=nnnnn.

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206704105-Forced-Soft-Wrap-in-Active-Editor-Window

但是,除非我在活动编辑器中明确禁用它们,否则 intellij 会继续包装这些行。有什么建议?

在此处输入图片说明

Cra*_*der 9

You should specify some large number instead of nnnnn, like

editor.soft.wrap.force.limit=100000
Run Code Online (Sandbox Code Playgroud)

Notice that editor may become very slow. Default limit is 10000.

  • @Vaishakh 帮助 | 编辑自定义属性。 (2认同)