Windows – How can I add an item to the ‘new’ context menu?

When I right click anywhere I get an option to add a new file with a specified extension. I would like to add some custom files into this menu, so I can right click and create a new PHP file for instance.

How can I do this?

Solution:

To add extensions of your choice to the list: create a file, add the content below, save it as whatever.reg, and run it.

Note: Replace .png with the file extension you want to add and replace whatever with anything you want.

Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT.pngShellNew]"NullFile"=""

Source