VS Code provides syntax highlighting automatically for xml and json files out-of-the-box. But when you start to process file that is larger than a certain size, the syntax highlighting no longer works.
Many other features might be disabled as well.
For example,
What is the root cause for this, and what is the exact limit of file size for these capabilities to work?
This is controlled by the "editor.largeFileOptimizations"
setting in VS Code. As of VS Code 1.30, the limits are:
These values are defined here
You can disable this behavior by setting "editor.largeFileOptimizations": false
. However we disable features on large files for performance reasons, and forcing VS Code to syntax highlight large files may result in poor editor performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With