Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Associate another file extension with Visual Studio

$
0
0

Hi,

I have a weird requirement.

Is it possible to associate another file extension with VS for C# code files (other than .cs)?

 

Basically, I wanted to create file with my own extension, (.xyz), but wanted Visual Studio to recognize the file as a C# file

- Which means that it should appear in the Solution explorer as part of the project like a .cs file

- The contents of the file should get compiled into the program

- Features like 'Go to Definition', 'Find all References', etc should work

- Syntax highlighting should be the same as a .cs file (optional)

Please let me know in case this is possible.

Regards,

Santosh


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>