Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

VS Code — Open Large Files Confirmation

Visual Studio Code now prevents you from accidentally opening large files by popping up a confirmation alert.

This comes in handy, especially in remote environments where there might be costs due to network bandwidth.

Or when you just have a slow computer and you want to prevent it from freezing up.

We can change the Limit by clicking the Configure Limit button.

But we can also change the value of the limit from the settings.json file.

To open the file press down CTRL + SHIFT + P and type in settings, then click the Open User Settings option.

Add the following setting somewhere in the file:

"workbench.editorLargeFileConfirmation": 2048

In my case I want to open a 2GB file, so that’s why you see 2048 there.

You can notice that these bytes are in binary, not decimal.

You’re all set!



Let me know what you think about this article through comments below, or on Twitter at @pelu_carol.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.



This post first appeared on Neutron Dev, please read the originial post: here

Share the post

VS Code — Open Large Files Confirmation

×

Subscribe to Neutron Dev

Get updates delivered right to your inbox!

Thank you for your subscription

×