How can I add a "C# File (.cs)" option under the Windows context menu : Right-click -> New?

I've tried editing the registry, and creating a new key under HKEY_CLASSES_ROOT\.cs\ShellNew and adding a "NullFile" String value in it, but nothing happens.

link|improve this question
feedback

migrated from stackoverflow.com Oct 21 '11 at 18:21

This question came from our site for professional and enthusiast programmers.

1 Answer

You need a file (which acts as the template for the future 'new' actions) in the ShellNew directory, typically in C:\Windows\ShellNew - in addition to the registry entry. See the summary in this post.

To be more explicit, your registry entry (in the location you indicated, but key name of 'Filename') points to the template file you drop into ShellNew.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown