Is not that i don’t like Windows default text editor (notepad.exe), but there are better editors. So, to change default text editor for edit command at right click on file we need to edit one line with Windows Registry Editor. Tested with Windows XP and Windows 7.
- click the Start button > click Run > type [regedit] and click OK or just press [windows key + R]
- in the Registry Editor, select the key: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit\command
- double click on the line in the right pane ex: [ (default) REG_EXPAND_SZ %SystemRoot%\system32\notepad.exe %1 ] and replace value under [Data] add your full path to you favourite text editor, dont forget to add “” if there are spaces in path or name.
- if you want to save the KEY for later use make sure you have selected command in right pane then go to registry menu > File > Export Registry File
[Not a valid template]