Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want set Notepad++ as the default editor. I tried to set it by right-clicking on a file, then Open With. But I did not see Notepad++ in the resulting list (even after clicking on Choose Other Programs).

When I try to redirect to Notepad++ through the Browse option to notepad++.exe file it is doing nothing. (Its not recognizing somehow)

enter image description here

share|improve this question
add comment

3 Answers

up vote 31 down vote accepted
  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.

share|improve this answer
    
This answer is especially helpful for Windows 7. –  A. R. Diederich Mar 27 '13 at 3:16
    
The key here is that Notepad++ must be run as administrator (elevated privileges), otherwise the file association's will not "stick". –  Metro Smurf Jan 26 at 16:16
add comment

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++.

share|improve this answer
    
Don't you have to start notepad++ as administrator? –  Nifle Sep 14 '12 at 11:35
add comment

As an alternative, you can also replace notepad.exe with notepad++.exe (or notepad2.exe or another editor).

Take a look at this gist to get an idea on how to do it: https://gist.github.com/amarraja/3938304

share|improve this answer
    
This works too: binaryfortress.com/NotepadReplacer/Download –  Doug Apr 28 at 2:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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