• Login
Community
  • Login

How to open Notepad++ with a new empty file?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 5.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Michael Koch
    last edited by Dec 24, 2021, 1:16 PM

    When I double-click on the Notepad++ icon, I would like that it opens a new empty file. I don’t want to see the last file or the what’s new file from the last upgrade. With other words: I want the same behaviour as the classical notepad. Is this possible?

    N 1 Reply Last reply Dec 24, 2021, 1:28 PM Reply Quote 0
    • N
      Nick Brown @Michael Koch
      last edited by Dec 24, 2021, 1:28 PM

      @michael-koch

      Ensure that the highlighted switch in the preferences is not checked.

      8800e63c-1f57-43da-befc-c25f175be1be-image.png

      M 1 Reply Last reply Dec 24, 2021, 1:34 PM Reply Quote 2
      • M
        Michael Koch @Nick Brown
        last edited by Dec 24, 2021, 1:34 PM

        @nick-brown Thank you, now it works. I would never have expected this function under “backup”.

        1 Reply Last reply Reply Quote 0
        • R
          Robert Carnegie
          last edited by Dec 27, 2021, 4:43 PM

          Referring to https://npp-user-manual.org/docs/command-prompt/

          another approach is to start Notepad++ with the “command line” parameter of: -nosession

          For instance, a Windows 10 desktop icon (shortcut) for Notepad++ can be copied and/or can have its “target of shortcut” changed to:

          “C:\Program Files\Notepad++\notepad++.exe” -nosession

          This is for the 64-bit version.

          This customized icon starts Notepad++ without opening the auto saved session. Only an empty “new 1” tab appears.

          It appears also that this Notepad++ instance does not create a saved session for the default Notepad++ configuration to reload later, and does not remove the saved session that the default configuration remembers. (I am only trying it with one file to be remembered open when I close Notepad++.)

          Another “command line” or shortcut option to consider is “-multiInst”. This opens a window for Notepad++ even when Notepad++ is running already. Trying it now, the second window will contain the saved session tabs evidently, unless -nosession -multiInst are used together.

          Up to now, I’ve just been closing my tabs (Ctrl+w) before closing Notepad++ and especially if I’ve had a very large text data file open: these are other good options.

          1 Reply Last reply Reply Quote 3
          • R Robert Carnegie referenced this topic on Dec 29, 2021, 4:18 PM
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors