VS2005编辑器支持着色器语法高亮文件usertype.dat

会洗澡的猫 28 0 DAT 2020-05-23 05:05:11

让VS2005编辑器支持着色器语法高亮 1.创建或编辑usertype.dat文件(此文件在VS安装目录下的Common7\IDE下面,比如我的就在D:\ProgramFiles\MicrosoftVisualStudio8\Common7\IDE\usertype.dat),添加如下的关键字列表,每个单词占一行,如果你想添加你自己的关键字,也可以按照这种方式添加在usertype.dat文件中 2.在vs中打开Tools->Options...->TextEditor->FileExtension 填写你想使用的着色器文件扩展名,如fx,hlsl,vs,ps等等,然后E

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-05-23 05:05:11

不知道放到2015能用不,我先试试

Generic placeholder image 卡了网匿名网友 2020-05-23 05:05:11

Generic placeholder image 卡了网匿名网友 2020-05-23 05:05:11

用上了,但不知为什么颜色不同,也没发现靠什么来控制的颜色。