How to show full long line in visual studio code (word wrap off)

后端 未结 1 1769
既然无缘
既然无缘 2020-12-08 10:37

I want to be able to view complete long line (on a single line) in visual studio code. The editor is terminating the line with ... at the end.

I can pr

相关标签:
1条回答
  • 2020-12-08 11:13

    The answer is in this GitHub issue:

    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.

    In other words, use CTRL + SHIFT + P to open up the Command Palette, select Preferences: Open Settings (JSON), and add the following line:

    "editor.stopRenderingLineAfter" : -1
    

    If you want to set a hard limit just change the -1 to whatever number of characters you want. Note that you might still get wrapping happening if you haven't disabled it, which you can toggle with ALT + Z or using the other methods mentioned in this Stack Overflow post.

    0 讨论(0)
提交回复
热议问题