<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to launch Notepad++ with new document open]]></title><description><![CDATA[<p dir="auto">I like to launch Notepad++ by using the run line and running “npp” which is a batch file in my path that calls a commmand line or shortcut for Notepad++. However, whether notepad++ is running or not, it always comes up with the last document showing. Then, I have to do ctrl+n or click the new document icon. I want the functionality where the old document(s) come up or if notepad++ is already running, just switch to it, but I can’t figure out what command would bring it up and open a new document. Is there any way to do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24197/how-to-launch-notepad-with-new-document-open</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 12:03:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24197.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Mar 2023 22:50:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 22:24:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a> said in <a href="/post/84575">How to launch Notepad++ with new document open</a>:</p>
<blockquote>
<p dir="auto">But, my goal is to just have Notepad++ open so that I can paste some text or start typing. Opening in a new document saves me from also having to do ctrl+n or click the icon. Just a little more convenient as long as I’m already running a command or script, might as well have it do what I want.</p>
</blockquote>
<p dir="auto">Create a file called “scratchpad.txt”.  Have your batch file open notepad++ with that same scratchpad file every time you run that shortcut.  QED.</p>
<p dir="auto">Or, better, pin a shortcut to your taskbar that opens notepad++ with that file, so you don’t even have to Win+R and type <code>npp[ENTER]</code>.  QED.</p>
<p dir="auto">Or, better, always have a copy of Notepad++ running, with your scratchpad file always open.  You can even put in your windows startup so it happens with you never having to manually run Notepad++.  QED.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84582</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84582</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 03 Mar 2023 22:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 21:41:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a> said in <a href="/post/84577">How to launch Notepad++ with new document open</a>:</p>
<blockquote>
<p dir="auto">offended</p>
</blockquote>
<p dir="auto">Don’t mistake spirited debate for offense.<br />
This site is here for discussion of Notepad++ usage, after all.<br />
Like I implied, I’m always looking for new tips-n-tricks to improve my own usage – just because I didn’t find that here doesn’t make me offended.<br />
Cheers!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84578</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84578</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Mar 2023 21:41:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 21:37:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
I’m not sure why you seem so offended by the fact that I hit WindowsKey+R, type npp enter, get a window, and then paste text that I have on the clipboard. That’s easiest for me. It’s not wishy washy at all. Not everyone does the same work in the world of computers. But you accidentally helped me anyway. So, thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84577</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84577</guid><dc:creator><![CDATA[Roman Revell]]></dc:creator><pubDate>Fri, 03 Mar 2023 21:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 21:24:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a></p>
<blockquote>
<p dir="auto">…so that I can paste some text or start typing.</p>
</blockquote>
<p dir="auto">Sounds wishy-washy.<br />
People often do this so they don’t have to name/save their tab (“I’m just taking a quick note”).<br />
They quit N++ and their “note” is there <em>next</em> time – all is good.</p>
<p dir="auto">In your case, by starting with <code>-nosession</code>, you won’t get this behavior – you’ll get prompted to save the <code>new 1</code> file when you exit the instance.  Easier to just specify the filename you’re going to end up with, up front.  Unless your data is complete throwaway, each and every time (dubious).</p>
<p dir="auto">So really, I’m still baffled at why you want the behavior you do.<br />
But, you go ahead being you, wanting what you want…<br />
I just thought there might be something for others to take away from what you’re doing; I don’t think there is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84576</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84576</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Mar 2023 21:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 21:11:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
I could do that sometimes if appropriate. I have not had success getting that to work really, but haven’t tried much. But, my goal is to just have Notepad++ open so that I can paste some text or start typing. Opening in a new document saves me from also having to do ctrl+n or click the icon. Just a little more convenient as long as I’m already running a command or script, might as well have it do what I want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84575</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84575</guid><dc:creator><![CDATA[Roman Revell]]></dc:creator><pubDate>Fri, 03 Mar 2023 21:11:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 20:20:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a></p>
<blockquote>
<p dir="auto">“C:\Program Files\Notepad++\notepad++.exe” -nosession -multiInst</p>
</blockquote>
<p dir="auto">What advantage have you managed to create with that, with your driving need to have a “new document” open when you startup N++?</p>
<p dir="auto">OK, so, you have that in a batch file, and you type <code>go_npp</code> (or whatever your bat file is named) while your CMD prompt is in some arbitrary directory.  N++ opens up and you are looking at a blank <code>new 1</code> document.  Now what?</p>
<p dir="auto">Maybe you make some changes to <code>new 1</code> and want to save them into <code>test.txt</code>. By virtue of having a “current directory” (where your CMD prompt was sitting when you ran the bat file), doing a <em>Save</em> will invoke a <em>SaveAs</em> prompt window in that folder, so that’s nice and convenient…</p>
<p dir="auto">But, why not invoke your batch file the following way, and save a step?:  <code>go_npp test.txt</code>.  N++ will prompt you to create <code>test.txt</code> before its main window appears, but other than that, this workflow seems more efficient to me.  (Note that you’d have to add a <code>%1</code> or a <code>"%1"</code> on your batch file line that runs the exe.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84573</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84573</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Mar 2023 20:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 19:10:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/84544">How to launch Notepad++ with new document open</a>:</p>
<blockquote>
<p dir="auto">-nosession</p>
</blockquote>
<p dir="auto">Thank you for your reply.<br />
Yes, -nosession works to prevent previous tabs from coming up; so, if Notepad++ isn’t running already when I launch it, that effectively works. But if it is running, that does nothing.</p>
<p dir="auto">This<br />
“C:\Program Files\Notepad++\notepad++.exe” -nosession -multiInst<br />
does open a new session without any tabs even if Notepad++ is already running. So, I guess that almost does it. That might be good enough for me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84572</guid><dc:creator><![CDATA[Roman Revell]]></dc:creator><pubDate>Fri, 03 Mar 2023 19:10:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 00:22:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a></p>
<blockquote>
<p dir="auto">whether notepad++ is running or not</p>
</blockquote>
<p dir="auto">Probably Terry’s suggestion of <code>-nosession</code> added to your batch file would take care of the case where you are starting N++ from a “not previously running state”.  However, I don’t think it will cause it to do what you want if invoked when N++ is already running.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84548</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84548</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Mar 2023 00:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Fri, 03 Mar 2023 00:20:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">The term “document” is totally valid terminology within Notepad++.  We have <em>Find All in Current Document</em>,  <em>Find All in All Opened Documents</em>, <em>Close Mutliple Documents</em>, <em>Close All but Active Document</em>, and maybe more.</p>
<p dir="auto">Tab (contents) are “documents”, whether they are saved or unsaved, to disk.  I don’t know that OP in his phraseology even made the distinction between saved/unsaved.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84547</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84547</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Mar 2023 00:20:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to launch Notepad++ with new document open on Thu, 02 Mar 2023 22:56:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roman-revell" aria-label="Profile: Roman-Revell">@<bdi>Roman-Revell</bdi></a> said in <a href="/post/84543">How to launch Notepad++ with new document open</a>:</p>
<blockquote>
<p dir="auto">but I can’t figure out what command would bring it up and open a new document. Is there any way to do this?</p>
</blockquote>
<p dir="auto">I would think the commandline option “-nosession”. Just look under <code>?</code> on the main menu, then Command Line Arguments.</p>
<p dir="auto">Bear in mind that your use of the word document isn’t really correct. These are just tabs and aren’t real files unless you save them as such.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84544</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84544</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 02 Mar 2023 22:56:01 GMT</pubDate></item></channel></rss>