Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Visual Studio to source highlight .json source code?

How can I get VS to source highlight .json source code? I'd also like to have it have some of the same key-bindings that normal JavaScript enjoys. In a way all I'd really need/want is a way to have Visual Studio recognize a .json file as a .js file (I think). Is this possible?

like image 491
lucidquiet Avatar asked Feb 22 '12 17:02

lucidquiet


People also ask

How do I beautify JSON in Visual Studio Code?

Formatting# You can format your JSON document using Ctrl+Shift+I or Format Document from the context menu.

How do I import JSON files into Visual Studio?

If you want to add a json file directly, you can right click ->add items->choose Json file.


1 Answers

Great news!

In CTP2 of Visual Studio 2013 Update 2 that was added a New JSON project item and editor

One more post New JSON editor features in Visual Studio 2013 Update 2 CTP2

JSON editor in Visual Studio supports data types

JSON editor in VS2013 adds warnings to Error List

JSON editor in VS2013 Update 2 CTP2

like image 198
Dmitry Pavlov Avatar answered Oct 10 '22 11:10

Dmitry Pavlov