Take the 2-minute tour ×

This question already has an answer here:

Whenever I need to create a C, C++, Batch, HTML, or Javascript file I need to open a new text document and save it with a different file extension. Is there a way I can add a new option to the Right Click->New menu (on a Windows computer) so that I can create a new program file directly from there?

Thanks -Zach

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tog, Mokubai, Shekhar, Carl B Oct 14 '13 at 7:14


1 Answer 1

up vote 2 down vote accepted

Create a file, add the content below, save it as whatever.reg, and run it.

Windows Registry Editor Version 5.00


Note: Replace .php with the file extension you want.

enter image description here

I believe this should work for you.

share|improve this answer
