Forked from ma-al/how-to-change-edit-in-windows-explorer-right-click-menu.md
Last active
September 10, 2025 17:07
-
-
Save JySzE/2c6ca421b9190bbaba7ab403fd7e98e1 to your computer and use it in GitHub Desktop.
Revisions
-
JySzE revised this gist
Sep 10, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ For Windows 10, change these keys in `regedit`: - `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit\command` From: `%SystemRoot%\system32\NOTEPAD.EXE %1` To: `"%ProgramFiles%\Sublime Text\sublime_text.exe" "%1"` Or: `"%ProgramFiles%{insert-path-to-fave-editor}" "%1"` Keywords: -
ma-al revised this gist
Jul 16, 2018 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,18 @@ For Windows 10, change these keys in `regedit`: - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command` - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command` - `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command` - `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit\command` From: `%SystemRoot%\system32\NOTEPAD.EXE %1` To: `"%ProgramFiles%\Sublime Text 3\sublime_text.exe" "%1"` Or: `"%ProgramFiles%{insert-path-to-fave-editor}" "%1"` Keywords: - right, click, file, context, menu, windows, explorer - change, modify, edit - get rid of notepad.exe as default editor - `ini`, `bat`, `cmd` Because you can't change default programs easily for above text types. Now when we right-click on a bat/ini/cmd file in windows explorer, the popup context menu "Edit" command will open that file in sublime or {insert-fave-editor-here}. -
ma-al revised this gist
Jul 16, 2018 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,19 @@ For Windows 10, change these keys in `regedit`: - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command` - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command` - `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command` From: `%SystemRoot%\system32\NOTEPAD.EXE %1` To: `"%ProgramFiles%\Sublime Text 3\sublime_text.exe" "%1"` Keywords: - right, click, menu, windows, explorer - change, modify, edit - get rid of notepad.exe as default editor - `ini`, `bat` Because you can't change default programs easily for above text types -
ma-al created this gist
Jul 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ For Windows 10, change these keys in `regedit`: - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command` - `Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command` From: `%SystemRoot%\system32\NOTEPAD.EXE %1` To: `"C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"` Keywords: - right, click, menu, windows, explorer - change, modify, edit - get rid of notepad.exe as default editor - `ini` Because you can't change default programs easily for above text types