There was a solution for VS 2005 here:
But doesn't find same registry for VS2008 and VS2010. So where can I find the solution update for this ? Thanks.
如果您要查找的是VS 2010编辑器中不同扩展名的语法高亮显示:转到工具 - >选项 - > TextEditor - >文件扩展名并输入扩展名。
I don't think it is any different. You however have to change the version number in the registry key name HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Languages\\File Extensions. VS2008 is 9.0, VS2010 is 10.0
These kind of registry hacks don't scale very well. It stops working when you open the project on another machine or use a different VS version. As you found out. Just renaming the file is the much lower pain-point.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.