How to make Visual Studio 2010 recognize file extensions as C # / ASPX / C / C ++ files?

Here was a solution for VS 2005:

http://www.dotnetmonster.com/Uwe/Forum.aspx/vs/3298/Make-Visual-C-recognize-file-extensions-as-C-files

But does not find the same registry for VS2008 and VS2010. So where can I find a solution for this? Thanks.

+8
c ++ c c # visual-studio
source share
2 answers

If you are looking for syntax highlighting for various extensions in the VS 2010 editor: go to Tools → Options → TextEditor → File Extensions and enter the extension.

+12
source share

I do not think this is different. However, you need to change the version number in the registry key name HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ VisualStudio \ 8.0 \ Languages ​​\ File Extensions. VS2008 - 9.0, VS2010 - 10.0

These types of registry hackers do not scale very well. It stops working when you open a project on another computer or use a different version of VS. How did you find out. Just renaming the file is a much lower point of pain.

+1
source share

Source: https://habr.com/ru/post/650513/


All Articles