Skip to content

Instantly share code, notes, and snippets.

@chipbite
Last active May 22, 2025 07:55
Show Gist options
  • Save chipbite/8f54d0a3d099ccd656c36e35f621e137 to your computer and use it in GitHub Desktop.
Save chipbite/8f54d0a3d099ccd656c36e35f621e137 to your computer and use it in GitHub Desktop.
Windows 11 - Replace notepad with notepad2
:: notepad2, install and replace standard win11 notepad, which is slow as snails...
:: first uninstall notepad2, if already installed
winget uninstall flos-freeware.Notepad2
:: backup, just to be prudent
reg export "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" notepad-exe-redirections-backup.reg
:: then delete the "redirection record", just to be sure
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
:: uninstall "new" notepad (I use cmd.exe, invoke powershell to do this):
POWERSHELL -COMMAND "Get-AppxPackage | Select-Object -ExpandProperty PackageFullName | Select-String notepad"
:: and reinstall notepad2 using
winget install flos-freeware.Notepad2
:: No reboot required, worked instantly for me.
:: Windows 11 24H2 build v 10.0.26100.3775
:: source, some more info and discussion: https://superuser.com/a/1784478/557294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment