Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.