Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save JySzE/2c6ca421b9190bbaba7ab403fd7e98e1 to your computer and use it in GitHub Desktop.

Select an option

Save JySzE/2c6ca421b9190bbaba7ab403fd7e98e1 to your computer and use it in GitHub Desktop.

Revisions

  1. JySzE revised this gist Sep 10, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how-to-change-edit-in-windows-explorer-right-click-menu.md
    Original 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 3\sublime_text.exe" "%1"`
    To: `"%ProgramFiles%\Sublime Text\sublime_text.exe" "%1"`
    Or: `"%ProgramFiles%{insert-path-to-fave-editor}" "%1"`

    Keywords:
  2. @ma-al ma-al revised this gist Jul 16, 2018. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions how-to-change-edit-in-windows-explorer-right-click-menu.md
    Original 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"`

    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, menu, windows, explorer
    - right, click, file, context, menu, windows, explorer
    - change, modify, edit
    - get rid of notepad.exe as default editor
    - `ini`, `bat`
    - `ini`, `bat`, `cmd`

    Because you can't change default programs easily for above text types.

    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}.
  3. @ma-al ma-al revised this gist Jul 16, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions how-to-change-edit-in-windows-explorer-right-click-menu.md
    Original 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:
    `"C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"`
    `"%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`
    - `ini`, `bat`

    Because you can't change default programs easily for above text types
  4. @ma-al ma-al created this gist Jul 16, 2018.
    18 changes: 18 additions & 0 deletions how-to-change-edit-in-windows-explorer-right-click-menu.md
    Original 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