How do I set Notepad++ as the default editor?

  1. Start Notepad++ with elevated privileges.

    enter image description here

  2. In Notepad++, go to Settings, Preferences...

  3. Go to the File Association tab.

  4. Select fortran,TeX,SQL and then .sql and add it to the registered extensions:

    enter image description here

  5. Click Close.


Start notepad++ as administrator, by right-clicking it's icon and selecting the relevant action:

enter image description here

In Settings > Preferences..., you can associate the extensions you want with Notepad++, using this dialog:

notepad++ association dialog

In this case, clicking on the red-outlined arrow would assicoate all .txt with Notepad++.