I tried to change the default text EDITING tool from notepad to notepad++, but for whatever reason it doesn't work. Note, that I DON'T want to make notepad++ the default program to open these kind of files. Thats a different issue. I want it to open when you rightclick a .txt file and click on 'edit'.

I've written a little .reg file

Windows Registry Editor Version 5.00
@="\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\" \"%1\""

The .reg file works alright, the value is changed. However, when rightclicking a .txt file and clicking 'edit', instead of opening the file in notepad++, Windows just opens the file dialog, asking me whether I want to continue opening this type of file with Notepad++ (which is already preselected).

What do I do wrong, how can I resolve this issue?


Solved the issue myself. Turned out you have to change the key in


To clarify, mine worked when I changed this Windows registry key:



%SystemRoot%\system32\NOTEPAD.EXE %1


%ProgramFiles%\WindowsApps\NightRise.NotepadWrapped_7.59.32.0_x64__bahp16nyyek9m\Notepad++.exe %1

Note, my Notepad++ installation was from the Windows Store, and I suspect the last portion of the path might differ on a different Windows 10 machine.

I found the exact path for Notepad++.exe by going to Windows task manager, right clicking the Notepad++ item, then selecting "Open File Location"

Hope that helps someone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.