How to show full long line in visual studio code (word wrap off)
我希望能够在Visual Studio代码中查看完整的长行(单行)。编辑器以
我可以按
是否可以像在Sublime Text或记事本中一样查看完整的长行?
答案在此GitHub问题中:
The current recommendation is to turn on word wrapping if the intent
is to edit past the 10k limit or change the limit via the"hidden"
setting"editor.stopRenderingLineAfter" which is equal to 10000 by
default, but which can be changed to -1 to never stop rendering. But
then freezes/lagging might occur.
换句话说,使用CTRL SHIFT P打开命令面板,选择"首选项":"打开设置(JSON)",并添加以下行:
1 | "editor.stopRenderingLineAfter" : -1 |
如果要设置硬限制,只需将-1更改为所需的任意数量的字符。请注意,如果未禁用它,可能仍会发生包装操作,可以使用ALT Z或使用本Stack Overflow帖子中提到的其他方法进行切换。
在1.41.1版本上,可以在