JSON Javascript highlighting in Visual Studio 2010

后端 未结 3 537
礼貌的吻别
礼貌的吻别 2021-01-07 23:00

Does anybody know how to get VS 2010 to use the same highlighting for a file called .JSON as it uses for a JavaScript file? Just working on a client site and they\'ve named

相关标签:
3条回答
  • 2021-01-07 23:24

    Great news!

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

    enter image description here

    0 讨论(0)
  • 2021-01-07 23:29

    Tools -> Options -> Text Editor -> File Extension

    End your extension 'json' and select 'Script Editor' and click 'add'.

    Re-open any json documents for it to take affect.

    0 讨论(0)
  • 2021-01-07 23:29

    Another option is to use Text Highlighter (extention for Visual Studio 2010), which offers syntax highlighting for the following text formats:

    • .json (also offer syntax validation)
    • .bat
    • .cmd
    • .ini
    • .txt
    • .log
    0 讨论(0)
提交回复
热议问题