在Visual Studio 2010中突出显示JSON Javascript [英] JSON Javascript highlighting in Visual Studio 2010

查看:133
本文介绍了在Visual Studio 2010中突出显示JSON Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何让VS 2010对名为.JSON的文件使用与JavaScript文件相同的突出显示吗?只是在客户端站点上工作,他们将所有JSON模板文件都命名为.JSON,结果当我在Visual Studio中打开它时,我只是得到一个普通的旧文本编辑器.有什么建议?我敢肯定某个地方一定有一个可以做到的选择,但到目前为止我还找不到...

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 all their JSON template files as .JSON, with the result that I just get a plain old text editor when I open it in Visual Studio. Any suggestions? I'm sure there must be an option somewhere that would do it but I can't find it so far...

推荐答案

工具->选项->文本编辑器->文件扩展名

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

结束扩展名"json",然后选择脚本编辑器",然后单击添加".

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

重新打开所有json文档以使其生效.

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

这篇关于在Visual Studio 2010中突出显示JSON Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆