Do you know how annoying it is to try to quickly open a file in Windows that should be all text and naturally you want to open it with a text editor right? Instead of being an easy process sometimes you have to go through a few steps to pick the program you want to open the file in. Well here is a quick registry hack that will let you import all the settings necessary to add a context menu (right click menu) item called “open with notepad” when you right click on a file. I personally like notepad better than wordpad (out of the build-in options in Windows), however, you could substitute your own text editor of choice here and save yourself a lot of trouble. Just copy the code below into a new notepad document and save the file (to your desktop for example) with a .reg extension. Then double-click on the resulting .reg file and click “ok” to add the registry information to your computer (NOTE: this only works on Windows operating systems).
Now when you right click on a file, notice you have a new option in the context menu to open with notepad. You can customize this as I mentioned to use your own text editor, just replace the name of the menu item and the executable name of your text editor in the code below. Naturally you need to make sure the .exe is in a set user path so Windows knows where to get it.
———————— (Copy below this line)————————————
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellOpen with Notepad]
[HKEY_CLASSES_ROOT*shellOpen with Notepadcommand]
————————-(copy above this line)—————————-——-