'How to use notepad++ as external editor for 7zip

When using 7zip, clicking "edit" on a file inside of an archive, per default opens up notepad. How to use notepad++ instead?

7zip has the option to configure an external exitor. Simply using the notepad++ exe does not work. Edit fails in notepad++ with an error message similar to "file cannot be saved, because it's already opened in another program" (I don't have an english installation).



Solution 1:[1]

for me, the zip file contains the file with ext .log. It was opened by notepad. From windows, change the default application for the file type .log. -> choose notepad++. then the open the log file inside 7zip. it is opened by notepad++

Solution 2:[2]

Not sure if this will help anyone anymore, the above command by Robert can be used in Tools > Options > Editor

in View and Editor

"C:\Program Files\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -noPlugin "%*"

This will open a new notepad++ editor without any other session and tab bar, after editing, close the editor , you will be prompted with

File "xyz.txt" was modified . Do you want to update it in the archive ? click ok/cancel

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wjiang100
Solution 2 scoutjohn13