How can I make Notepad++ default program for `.txt` files?

How can I make notepad++ default program for .txt files?

  1. Run Notepad++ as an Adminstrator

  2. Menu > Settings to open the "Preferences" dialog

    • Click "File Association"

    • Click "Notepad", then

    • Click ".txt". then

    • Click "->" to register notepad++ as the program to edit .txt files:

    • Click "Close"

enter image description here


Follow the below steps

  1. Right click any .txt file and click

Open With > > Choose another app

  1. In the opened window click

More Apps

enter image description here

  1. Scroll to bottom and click

Look for anther app on this PC
enter image description here

  1. Navigate to install location of Notepad++. Default is

C:\Program Files\Notepad++

  1. And select "Notepad++.exe"

With Windows 10 (Oct 2018) this worked for me:

  • Open Notepad++ as an administrator and then follow the steps posted by DavidPostill above

then

  • Go through the normal Windows process of right click "Open With >" > "Choose another app" and click the "Always use this app to open .txt file" box.