3 ms·
Will I not have to restart in safe mode if I open a 5MB JS payload? (It crashes the tabs and the editor, but I can still use the file menu and such)
by cordite 9y ago
Will I not have to restart in safe mode if I open a 5MB JS payload?
(It crashes the tabs and the editor, but I can still use the file menu and such)
- santaclaus 9y agoThere is nothing more horrifying in the known world than accidentally opening a 200meg log in VSCode or Atom... (both have other great advantages, though).
- Zelizz 9y agoMeanwhile I've opened a 20GB log in Sublime Text and done some actual work with it...
- SquareWheel 9y agoJust don't turn on syntax highlighting. I've made that mistake with a giant SQL file.
- ComputerGuru 9y agoA lot of vim plugins take a different approach that initially makes one think they are broken: they only render syntax based on what's in the buffer, which leads to things like HTML closing tags with opening tags not visible in the buffer (presuming you didn't scroll past the opening tag and jumped straight to the current position) won't be highlighted correctly, etc. but it means never having to parse the entire file just to get syntax highlighting working. It's a good compromise, on the whole.