How do I modify the Windows 10 File Explorer 'New item' menu?
This is the menu I mean:
I want to be able to add and delete items. Thanks for your assistance.
This is not a context menu (sometimes known as a right-click menu). It's the drop-down menu available near the top of the File Explorer display, under 'New Item'.
How can I change its items?
You will need to edit the registry to add and remove entries in the New Context Menu:
Navigate to the Registry editor first by opening the run prompt (Windows+R) then type regedit
and press enter.
Removing an entry
- Navigate to the key
HKEY_CLASSES_ROOT
and expand it. - Look for the extension of the file-type you want to remove from the menu. For example, if you want to remove "New Word Document", find
.docx
and expand it. - In the sub-keys, find the key
ShellNew
and remove it. This will remove the entry.
Adding an entry
- Navigate to the key
HKEY_CLASSES_ROOT
and expand it. - Look for the extension of the file-type you want to add to the menu. For example, if you want to add the entry "New XML Document", find
.xml
. - Right click on it and select
New -> Key
and name itShellNew
. - In the right pane select
New -> String Value
. Name itNullFile
and press enter.
If the above does not work (as it does sometimes on certain files on newer Windows versions), try the following:
- Navigate to
C:\Windows\ShellNew
and create a new file (with any name) with the extension of file-type you want to add. For example, if you want.xml
:
- Go back to the registry editor where you created
NullFile
in step 4. In there, create another string value namedFileName
and set it to the path you created in step 5:
The file-type should now show up in the New Context Menu.
All information and images found here and here. Check links for further reading.