VS中设置proto语法高亮

 时间:2024-10-11 19:49:59

1、打开VS,在工具菜单中找到选项

VS中设置proto语法高亮

2、在选项页面中,找到“文本编辑器”

VS中设置proto语法高亮

3、在文本编辑器下面找到“文件扩展名”

VS中设置proto语法高亮

4、添加proto扩展名,编辑器选择Microsoft Visual C++

VS中设置proto语法高亮

5、找到vs的安装路径下的IDE目袄嬖艽蛞录,默认为C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE

VS中设置proto语法高亮

6、看目录下面是否有usertype.dat文件,哪果没有,创建一个。

VS中设置proto语法高亮

7、用文本编辑器打开,输入以下内容,一个关键字一行__int64autoboolbreakcasecat艘早祓胂chcharcerrcinclassconstcontinuecoutdefaultdeletedodoubleelseenumpackagemessagerequiredoptionalrepeatedexplicitexternfalsefloatforfriendgotoifinlineintlongmutablenamespacenewoperatorprivateprotectedpublicregisterreturnstringint32bytebytesshortsignedsizeofstaticstructswitchtemplatethisthrowtruetrytypedefunionunsignedusingvirtualvoidvolatilewchar_twhile__asm__fastcall__based__cdecl__pascal__inline__multiple_inheritance__single_inheritance__virtual_inheritancedefineerrorincludeelififlineelseifdefpragmaendififndefundefifelseendif#

VS中设置proto语法高亮

8、重起VS看看,就可以显示高亮了

VS中设置proto语法高亮
  • 如何判断rs.next为空
  • 如何在MySQL中用SQL语句实现操作
  • Eclipse中如何编写Perl脚本?配置开发环境
  • Linux死进程怎么杀
  • XShell如何导入导出会话、连接
  • 热门搜索
    打印机ip地址怎么改 生活中的图形 阿亮的烦恼生活 腰椎间盘突出怎么锻炼 优盘写保护怎么解除 蓝秀化妆品怎么样 唐氏综合征是什么病 生活十讲 一体化生活污水处理 hpv是什么