打开两个 Notepad++ 实例

Open two instances of Notepad++

我想在桌面上有两个 Notepad++ 快捷方式,想象一下安装两个 Notepad++,每个都带有它们的 exe 图标快捷方式,这就是我想要的,所以我可以在两个项目中工作,

我已经尝试了所有的实例,"multiins" 或 "atl + f6",但它并不像我想要的那样工作,

同样,这与另一个同名问题不同,我想有两个notepad++的快捷方式图标,每个打开它们的文件,

如果不可能,我需要同时使用notepad++和sublime-text,但那将是一个非常丑陋的选择

谢谢,我正在使用 notepad++ 5.9.6

(假设打开 notepad++ 和 sublimetext,在每个项目中工作不同的项目,我想这样做,但只能用 notepad++ 打开两个 notepad++,:P)

当您打开第二个文件时,当它作为第二个选项卡打开时,您只需抓住该选项卡并将其拖出 Notepad++ 即可在第二个会话中打开它。有点像 Firefox、Chrome 和 IE 使用选项卡的方式。

Notepad++ 在单个实例上运行,而 运行 在不同的 windows.You 上可以在 Microsoft Office 的 Excel 中找到此类应用程序的另一个示例。您打开文件 windows,但它仅在一个进程 (EXCEL.EXE) 上运行。

我只是将一个选项卡从现有会话拖放到桌面上,它会打开另一个实例。

来自documentation

You can launch Notepad++ with the -multiInst Command Line Switches. This will enable launching extra instances when opening files by double click or right click. Any command line will do, including the one that you can access from the Properties of the desktop shortcut.

You can always send a document being edited to another instance from the View menu or the tab right click menu, or call Run -> Open in another instance, regardless of this setting.

To force one file per instance Notepad-like behaviour, see Notepad-like Behaviour. This will hide the tab bar, but you can restore it from Settings -> Preferences -> Tab bar.

You can also access the properties of the Explorer Context Menu, and plug the -multiInst switch in the command line available there.

The Settings -> Preferences -> Multi-Instance preference widget allows choosing between the way Notepad++ handles multiple instances:

  • by default, us single instance mode
  • always use multiple instances
  • open session in new instance

有一个在新实例中打开的快捷方式 Alt + F6。 此外,如果您想始终在新实例中打开而不是转到 settings->prefrences->Multi-instance ,在这里您可以 select 选项始终处于 multi-instance 模式。

终于找到了怎么做:

  1. 设置 > 首选项 > 多实例 > 始终处于多实例模式
  2. 如果新建文件,多实例不起作用。需要先保存此文件,然后将选项卡移出 window.