Can't use Notepad++ as default program for .txt

I was able to recreate this issue with Notepad++ on Windows 10 Pro where Notepad++ would not stay the default. I was able to resolve it by:

  1. Open Notepad++

  2. On the menu bar, navigate to Settings > Preferences > File Association

  3. In "Supported extensions", click "Notepad" and in the next panel to the right, you should see the .txt and .log extensions.

  4. Click the .txt extension, then click the "->" right arrow to move .txt to "Registered Extensions", then you can close the Preferences window

  5. Use File Manager and navigate to a directory with a .txt file in it.

  6. Right-click the .txt file and select "Properties"

  7. On the part that says "Opens with:", click the "Change" button, and select Notepad++

When you click OK, Notepad++ should now stay the default app for .txt files.