Can the VS IDE file associations be controlled?

  • Thread starter Thread starter Jeff Johnson
  • Start date Start date
J

Jeff Johnson

My co-worker has a .ccs file (apparently it's "C# Script") and he wants
Visual Studio to provide the same highlighting and Intellisense as it would
for a .cs file. Is there any way to make this happen? I added the file to a
solution and chose Open With on it, but the C# editor was not in the list of
available editors. Is there a registry hack for this?
 
Jeff said:
My co-worker has a .ccs file (apparently it's "C# Script") and he wants
Visual Studio to provide the same highlighting and Intellisense as it would
for a .cs file. Is there any way to make this happen? I added the file to a
solution and chose Open With on it, but the C# editor was not in the list of
available editors. Is there a registry hack for this?

What version of Visual Studio?

I'm using VS2008, Team System, and in the Tools/Options/Text Editor/File
Extension section, I can just add "ccs" as an extension associated with
the C# editor, and VS treats it as a .cs file.

The only "gotcha" is that changes to the options don't affect
currently-opened files; you need to close and reopen the file before
it's recognized and edited with the desired editor.

Pete
 
What version of Visual Studio?

I'm using VS2008, Team System, and in the Tools/Options/Text Editor/File
Extension section, I can just add "ccs" as an extension associated with
the C# editor, and VS treats it as a .cs file.

The only "gotcha" is that changes to the options don't affect
currently-opened files; you need to close and reopen the file before it's
recognized and edited with the desired editor.

I glossed right over that option and went straight to the C# node. Thanks,
I'm sure that'll do the trick!
 
Back
Top