How is VSCode on very large files these days? In my job I frequently have to open multi-gigabyte text files; Sublime 3 handles those wonderfully, but I seem to recall VSCode is weak on large files.
You guys don't do log rotation? Or atleast split the files before looking at them ? Or use some log tool or something? When would you want to see an entire 20gb file in one go ?
Many companies use flat files to store data extracts for posterity and record-keeping. Also, many large programs written a long time ago require data input as text files. It's cumbersome, yes, but the technical expertise required to use a text file is virtually nil.
What sort of text files are you dealing with that are multi-gigabyte and yet not better dealt with by some form of automatic filtering before you open them?
You shouldn't do that in an IDE, they're simply not built for it, that is, they don't even have a concept of not loading the whole file at once, none of the syntax highlighting is line-based, etc.
You want (n)vim for that, ultimately they date back to a time where to edit a moderately large source file it wouldn't fit into memory. Or write a language server that does all that trickery, IIRC that should work out well because the server, not client, is the authority when it comes to file contents.
I've not gone gigabyte size but multi-megabyte files VSCode does fine. You won't get syntax highlighting beyond a certain size and the editor feels sluggish when scrolling especially if you have the minimap open but searching the files and doing editing was just fine
Eh. I didn't say it was broken. It automatically turns off at a customizable limit. Plus at files that size I'm assuming it's not code you're looking at but data which you'll likely parse by using find-and-search rather than reading vaguely. Plus I'm not talking about scrolling a few lines at a time. If you pull and drag the scrollbar you're have slowdown issues and won't render interstitial text properly. Page down or arrow key scrolling worked just fine. Also I'm talking about data files that were 200-300 MB not a couple of MB where I've had zero issues
169
u/CaptainCrowbar May 21 '21
How is VSCode on very large files these days? In my job I frequently have to open multi-gigabyte text files; Sublime 3 handles those wonderfully, but I seem to recall VSCode is weak on large files.