Let me explicitly add the “hack” mentioned by @Do_Nhu_Vy here (since I don’t trust third-party websites and I don’t have enough reputation to respond to his comments). All credit goes to the original WordPress user (Pandazen) at the specified link.
Now when
The hack / solution is to change the "userdir" of NetBeans at startup: when NetBeans detects a different "userdir" (than the already open Netbeans window), it then proceeds to open a new window.
The process of changing your NetBeans username at startup is simple:
- Create an empty user directory, for example:
C: \ tmp
- Duplicate an existing NetBeans shortcut (create a new one). Most likely, you will find a shortcut in the Windows Start directory
C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ NetBeans "
- Right-click on the newly created Netbeans shortcut and select "Properties",
- Change the "Target" field by adding the suffix --userdir DIRECTORY with the selected path, replacing DIRECTORY with the newly created empty directory. For instance:
"C: \ Program Files \ NetBeans 8.2 \ bin \ netbeans64.exe" "--userdir C: \ tmp
Now each shortcut will launch a NetBeans instance in a separate window. This works with NetBeans 8.2, but I have not tested it with NetBeans 9 or 10.
source share