'How to disable the length limitation of pasted text in VScode when word wrap is disabled?

When I paste a very long text, it will limit the end of the string with three dots, like so:

verylongtextverylongtextvxtverylongtextverylongtextverylongtext…

This does not happen if I enable word wrap, which I don't prefer to have enabled, especially when I am pasting huge content into the editor.



Solution 1:[1]

Try this setting:

"editor.stopRenderingLineAfter": -1

see https://github.com/microsoft/vscode/issues/7772#issuecomment-347174463

Vscode will dim the setting as unknown but it is supposed to work anyway - fortunately I can't test ;>} A limit was set for performance reasons so disabling it may have repercussions...

Solution 2:[2]

I got around this by pasting the raw data into notepad, saving as whatever.txt in my target directory, and then changing the filename to whatever.json in VSC. Worked like a charm.

Of course, this is fine for a one time solution, I'm not recommending it for routine practice.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark
Solution 2 Dre