2

Is there a way to disable Notepad++ tabs?

I would like to open each file in a new window. Not necessarily in a new instance but there should be a new tab in the windows task bar as well. Essentially I want Notepad++ mimic MS Notepads behaviour in regards to open multiple files. I'm using Notepad++ in it's portable version, so I would prefer but not limit a possible answer to a solution that works with it.

UPDATE: currently (as of Okt2020) it is not possible to setup multi instances without sacrifice features like autosave which (unfortunately) I require to work properly

6
  • 1
    Settings > General > Tab Bar > Hide is the closest.
    – DavidPostill
    Oct 27, 2019 at 20:01
  • @DavidPostill already tried it, only hides the tab bar, doesn't change notepads behaviour at all.
    – Albin
    Oct 27, 2019 at 20:04
  • 1
    You need to play with Settings > Preferences > Multi Instance as well but close all your tabs first.
    – DavidPostill
    Oct 27, 2019 at 20:07
  • @DavidPostill I did as well, still doesn't give me the desired behaviour, quite a few use cases where it still opens in tabs.
    – Albin
    Oct 27, 2019 at 20:25
  • Did you restart after making the changes?
    – DavidPostill
    Oct 27, 2019 at 20:49

1 Answer 1

1

You can mimick this by opening each file from outside of Notepad++ using a command with multiInst [command-line parameter][1]:

notepad++.exe C:\myfile.txt -multiInst

and later

notepad++.exe C:\anotherfile.txt -multiInst

etc...

You can put this into a batch file and then use it to open anything in Notepad++.

I am not saying you should attempt to open a file from the inside of Notepad++ (menu File > Open) if you say that based on what you tried this way is unreliable.


Update after question update:

Use more sophisticated batch file which will clone Notepad++ program directory including all six configuration XML files into a new temp directory.* This way you will have open each file in separate Notepad++. Create a scheduled task which will delete all such temp directories/hardlinks if no Notepad++ is running at the moment (what is a simplified but reliable approach).

*) Use portable version of N++ for this configured for MultiInst. You can use hard links mklink /j with dirs and mklink /h with files to save you from actually copying most of N++ files. This will make the cloning super-fast.

5
  • Thanks for the suggestion, unfortunately my goal was to open the file directly (without creating a batch file). Your solution could be implementet without a batch file as well but it's possible now to do it through the setup without a batch file. But you have to sacrifice features like autosave (see question update).
    – Albin
    Oct 14, 2020 at 22:57
  • @Albin – please consider this: "my goal was to open the file directly" was not stated in the question, as well as the updated part. Moving target is not a good StackExchange practice. Anyway, I will add alternative solution for you now.
    – miroxlav
    Oct 14, 2020 at 23:10
  • It's sort of "stated" by my statement "mimic MS Notepads behaviour", but in general I agree with you, sorry for not being specific enough. If you have a solution that works with the autosave, that would be great. I tried it but the autosave only works for the first instance.
    – Albin
    Oct 14, 2020 at 23:22
  • @Albin – see the latest update. This should be doable and not overly difficult. Before, test it manually if multi-instance created this way will allow AutoSave or not.
    – miroxlav
    Oct 14, 2020 at 23:34
  • Interesting idea, I have to see if I can make it work without creating a batch file for each file I want to open...
    – Albin
    Oct 14, 2020 at 23:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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