Can the VS IDE file associations be controlled?

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?
 
P

Peter Duniho

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
 
J

Jeff Johnson

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top