You need to create a Registry file ( .reg ) to make the changes.
This method effectively "tricks" Windows 11 into launching Notepad++ whenever the specific executable notepad.exe is called. This is useful for deep system integration (like right-clicking a file and selecting "Edit" or viewing source code in browsers). replace notepad with notepad++ windows 11
Right-click the file and select Open with > Choose another app . You need to create a Registry file (