eclipse 如何在mac上打开多个Spring STS实例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16124339/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open multiple Spring STS instances on mac
提问by Thomas Buckley
Any time I double click the STS icon it opens the same instance again.
每当我双击 STS 图标时,它都会再次打开同一个实例。
How can I open multiple instances?
如何打开多个实例?
回答by dlaidlaw
Also check out the open command which can be used from the command line. In particular, open -n any.app will open a new instance of the application even if one is already running. This will work with any application, not just STS or eclipse where a convenient shell script is provided for you.
还可以查看可以从命令行使用的 open 命令。特别是, open -n any.app 将打开应用程序的一个新实例,即使它已经在运行。这适用于任何应用程序,而不仅仅是 STS 或 eclipse,它们为您提供了方便的 shell 脚本。
回答by Thomas Buckley
回答by yousafsajjad
Here are the steps that worked for me
以下是对我有用的步骤
- Go to STS folder
- right click on STS file and select Show Package Content
- Goto Content->MacOS
- Right click on STS and select Make Alias
- 转到 STS 文件夹
- 右键单击 STS 文件并选择显示包内容
- 转到内容-> MacOS
- 右键单击 STS 并选择 Make Alias
Once above steps are done. Copy the alias somewhere at the sts level and click on it to start another instance of sts.
以上步骤完成后。将别名复制到 sts 级别的某处,然后单击它以启动另一个 sts 实例。
回答by Khader M A
The easiest way is to use open command with -n parameter
最简单的方法是使用带有 -n 参数的 open 命令
1. Open terminal
2. cd /Applications/
3. open -n STS.app/
The same command can be used to open 2 eclipse instances. But 3rd command should be open -n Eclipse.app/
可以使用相同的命令打开 2 个 eclipse 实例。但是第三个命令应该是 open -n Eclipse.app/
With this command, we can open as many instances as we want.
使用此命令,我们可以打开任意数量的实例。
Hope it helps!
希望能帮助到你!
回答by Kike Gamboa
You just need to type in the terminal:
你只需要在终端输入:
$open -n /Applications/STS.app
$open -n /Applications/STS.app
If you prefer just to write a word, maybe you need an alias, type:
如果你只想写一个词,也许你需要一个别名,输入:
$nano .bash_profile
or nano .zsh
$nano .bash_profile
或nano .zsh
and add the next line:
并添加下一行:
alias spring="open -n /Applications/STS.app"
close and save, the just type:
关闭并保存,只需键入:
$source ~/.bash_profile
or source ~/.zsh
$source ~/.bash_profile
或source ~/.zsh
close terminal, open and type:
关闭终端,打开并输入:
$spring
$spring