@AlainCh2 said in Replace Notepad++ as Default W10 editor. How to ?:
Activated in right click > Open With
Open with >Choose another App \ Browse to Program Files/Notepad++ 🙄
-That’s not enough … …crazy as it can be,
That always worked for me back when I was using Win10. And I just verified I had no difficulty in Win11 getting it to keep Notepad++ as an Open With for .ini files.
BUT now you have fixed it as > Edit with Notepad++,
If all you are looking for is the Edit with Notepad++ choice in the right-click menu, when you run the installer initially, assuming it prompted with the UAC prompt, your installation should have included the ShellExtension DLL C:\Program Files\Notepad++\contextMenu\NppShell.dll (assuming you installed newer than v8.5.1; older versions used a different name, and didn’t work with Win11). And it should have registered that DLL so that the Windows Explorer context menu includes that. If something went wrong with that registration, you could open a cmd.exe or PowerShell window in that contextMenu directory, probably using “as Admin” when open that window, and then follow the manual DLL registration instructions instructions from the user manual. (That page in the user manual has a lot of different tactics to get the Edit with Notepad++ or similar, including a registry entry that adds it as a verb to all files, so that you don’t have to do the OpenWith on each file type. But the Shell Extension DLL is really the preferred method, because it’s designed to do things the way Windows likes.)
With the modern Notepad++, that same DLL should work to get the right-click entry with either Win10 or Win11.
If you got it working using an alternate method (like the registry edit shown in the first post), great. This is just presenting an alternate method, and the way that Notepad++ intends you to get Edit with Notepad++ functionality.