Our mission here at Geeky Ninja is to make things easy and simple. One of the complex job is opening any file with Notepad. You can open text files with .txt extension in notepad usually by double clicking on the file. If the file is an HTML or VBS etc then you can open those file from the Open with > Notepad using the right-click context menu. But that doesn’t work for all files. So, for some files, you have to select notepad as the opening application from the option “Choose program”.
But all the complexity can be avoided by adding the Open with notepad option at right-click context menu for all types of file. There is a simple registry hack to do that.
Registry Hack To Add The “Open with Notepad” Option To The Right-Click Context Menu
Press Win + R and type “regedit” without the quotes and hit enter to open the registry editor.
Note: You are about to edit the registry, so it is always recommended that you should keep a backup of your registry to be in safe side before making any change. Learn how to backup registry.
Now navigate to the following path from the left pane of the registry editor:
If the entry “shell” is not available there, create it by right clicking on “ * ” and then by choosing New > Key. Give the name of that key as shell.
Similarly, create another key Open with notepad under shell and command under the recently created key (Open with notepad).
Select the command key and right-click on Default at the right pane and select Modify.
Under the Value data field put the following command:
and click on OK.
You should see the changes immediately.
If you are not computer savvy and are afraid of editing the registry yourself then you can download the following registry file which will automatically do the job for you.
The above link will download a zip file containing the registry hack to add the Open with Notepad option in the context menu along with the un-installation script.
Just extract the zipped file and double click on the OpenWithNotepad.reg file. If you want to remove the entry from the context menu, just double click on the RemoveOpenWithNotepad.reg file.
This trick also works on Windows 7 and Windows Vista.