1

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

1 Answers1

2

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

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.php\ShellNew]
"NullFile"=""

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

enter image description here

I believe this should work for you.

stderr
  • 10,569
  • 2
  • 36
  • 50