Restore “New > Text file” in Windows’ contextual menu

If you’ve changed your standard .tex file editor to Notepad2 or Notepad++, chances are that the contextual menu entry “Create New > Document file” has disappeared.

To restore it, just save the following code as a .reg file and run it (thanks to Archos alias Limneos for posting the code on a SevenForums):

Windows Registry Editor Version 5.00

"Content Type"="text/plain"



PS: in case you’re wondering what the hex code in ItemName means, it just stands for “@%SystemRoot%\system32\notepad.exe,-470”. This means that standard Windows notepad is used to create the file, but just to create it. This has no impact on the default .txt file editor and double-clicking the created file will just open it with whatever you defined as such.