Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Oct 21 '11 at 18:21

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

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

Your Answer


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