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

Viewed 1267

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.

3 Answers

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.

This behaviour is very confusing, but to clarify the problem - it is a rendering limitation in VS code. The full text has been pasted, so reformatting the document will render it correctly

Related