Notepad2, Disable Reusing the same window

After reading about notepad2 from some other bloggers in the community (Omar), I downloaded it and have been using it for a couple weeks. If you desire more from notepad I would highly suggest you take a look at it. I took Omar's advise and just replaced the existing notepad with it and I haven't had any problems. The only thing that bothers me is that it resuses the window by default. So you can't open more than one file by clicking on the files themselves you would have to do it through notepad2, by the open new window option.

Well it finally bothered me enough to try and figure out how to fix it. I looked through the documentation and it said something about disabling reusable-windows by using the "\n" command line option. I thought there had to be a registry setting or something so I opened the source code and sure enough there is a registry setting.

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. I cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Under [HKEY_CURRENT_USER\Software\Notepad2\Settings] you can add a new DWORD value with the name "ReuseWindow" and give it a value of 0. This will have it open a new window by default.

I figured I would share this just in case anyone else is in the same situation.

Published Friday, May 14, 2004 5:09 PM by puzzlehacker

Comments

# re: Notepad2

Great, thanks!! :-)

Sunday, May 16, 2004 3:22 PM by Damir Tomicic

# re: Notepad2, Disable Reusing the same window

Or you can just uncheck "Settings" -> "Reuse Window".

Sunday, May 16, 2004 8:09 PM by Steve Clarke

# RE: Notepad2, Disable Reusing the same window

Is there a reason you did not use the menu item right in the "Settings" menu called .. "Reuse window" (its checkable menu item)?

Monday, May 17, 2004 8:41 AM by Girish

# re: Notepad2, Disable Reusing the same window

I looked for a option in all the menus but I guess I over looked it, I'm away right now so I can't check it but I will be sure to check as soon as I can. Thanks.

Monday, May 17, 2004 8:18 PM by Wes

# Taking Note of Notepad2

Pity poor Notepad, the default text editor that ships with every copy of Windows, that lacks the oomph to handle more...

Tuesday, May 18, 2004 5:07 PM by TrackBack

# New version of Notepad2

This feature is now off by default in version 1.0.10!

Saturday, May 22, 2004 9:57 AM by Rohan Cragg

#

Sunday, May 23, 2004 7:49 PM by TrackBack

# re: Notepad2, Disable Reusing the same window

Try Notepad++ : http://notepad-plus.sourceforge.net/ It beats Notepad2 in every aspect.

Tuesday, October 24, 2006 8:51 PM by Yel

# NotePad2

I love NotePad2 , you can do RegEx search/replace and loads more, but I have one suggestion. I can use

Tuesday, April 15, 2008 1:39 PM by .Net World

Leave a Comment

(required) 
(required) 
(optional)
(required)