I could do this easily with TextPad, then I got irritated with Textpad once I'd played with Notepad++.

Now that I've removed Textpad:

  • I want Notepad++ to take over the right-click > Edit option in Explorer, and
  • I want Notepad++ to come up when I type notepad in the command prompt.

I know that Notepad++ has a shell extension that allows one to do right-click > Edit in Notepad++. But my old right-click > Edit link remains, and I keep finding myself clicking on it, only to be rewarded with an error.

link|improve this question

70% accept rate
As an aside, to invoke a different editor from Internet Explorer: I'm not sure if this is still the case, but in older versions of Windows/IE putting a shortcut named Notepad (to whatever program you'd like to start) on your desktop would do the trick. – Arjan Nov 27 '09 at 10:57
Some more info on "an error" might be helpful. – Arjan Nov 27 '09 at 14:55
would you mind to let us know which OS you are referring to? you mentioned "c:\winnt", is it Windows NT 4.0 or 2000? – Molly7244 Nov 27 '09 at 15:33
XP Pro 2002 SP2 – Nick Nov 27 '09 at 16:23
feedback

4 Answers

Notepad++ has an interface exactly for this. Go to

Settings > Preferences > File > Association

From there you can choose what extensions you would like to associate with Notepad++, sorted into categories (with the option of adding custom ones)

link|improve this answer
ok so what about unknown file extensions? I want one option that works for everything, like textpad has – Nick Nov 30 '09 at 12:16
Unknown file extensions can be added via Settings > Prefrences > File Association > customize and type the custom file extension you want – Gausie Dec 1 '09 at 11:50
1  
It is worth noting that to make this work in windows 7, you must run notepad++ as an Administrator. Otherwise you can make these changes all day long, but it never works. – Clever Human Apr 14 '10 at 14:22
thanks clever human – brian_d Nov 4 '10 at 17:09
actually...still not getting the changes to stick around : ( – brian_d Nov 4 '10 at 17:12
show 1 more comment
feedback

If you don't want to change the system files simply right click on a file and select "Open With > Choose Default Program".

Now just select Notepad++ and you're good to go.

The only drawback with this approach is that you need to do it for all file types you want to open with the new program (*.txt, *.log, *.xml or whatever), so if you have a lot of different text based files it's not the option for you.

link|improve this answer
yeah, the drawback kills this approach for me. – Nick Nov 27 '09 at 11:13
@Nick - no worries, I just thought I ought to mention it as a less drastic approach – ChrisF Nov 27 '09 at 11:47
feedback

Notepad++ has a shell extension that allows you to do Right Click > Edit in Notepad++

link|improve this answer
I know, but my old right click > edit link remains, and I keep finding myself clicking on it, only to be rewarded with an error! – Nick Nov 27 '09 at 11:45
Well, @Nick, that seems quite an important detail to me... – Arjan Nov 27 '09 at 14:54
feedback

Your Answer

 
or
required, but never shown

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