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

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.