Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Visual Studio 2015 lock up when editing a .json file?

I created a brand new file named RequireJS.json in Visual Studio 2015, and while typing and copying and pasting to build my JSON object, I noticed that VS would continually lock up for around 10-20 seconds at a time. This seemed to happen more often as I switched tabs, then came back to the .json file. I restarted VS, then restarted the computer, but it continued doing this. No other files or file types are lagging like this. Why would this happen only with .json files?

like image 981
John Washam Avatar asked Jan 21 '16 23:01

John Washam


People also ask

Can you edit json in Visual Studio Code?

You can open the settings.json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the file is open in an editor, delete everything between the two curly braces {} , save the file, and VS Code will go back to using the default values.

Can Visual Studio Open json?

In Visual Studio Code, use shortcut Ctrl + Shift + P to open the Command Palette and type Open launch. json . And it will open the launch. json file for you.


1 Answers

Since this was only occurring with JSON files, I wondered if it had something to do with Visual Studio's text editor, so I took a look at the VS options under Text Editor -> JSON. I noticed under the "Schema" section, it was pointing to a schema catalog at an external URL (http://schemastore.org/api/json/catalog.json in my case). I unchecked this box, with the thought that VS might be lagging trying to download the file or something, and that must be right because I haven't experienced any VS lags or lockups since unchecking that box.

like image 89
John Washam Avatar answered Oct 24 '22 19:10

John Washam