How to run system shell/terminal inside Eclipse?

2019-03-25 02:35发布

I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.

In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.

2条回答
趁早两清
2楼-- · 2019-03-25 03:07

In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.

enter image description here

To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.

Then, the terminal will open in a new view inside Eclipse.

enter image description here

查看更多
做自己的国王
3楼-- · 2019-03-25 03:29

The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T

Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.

You may need to restart afterwards

And finally you will be able to get the Terminal when you will type

Alt+Ctrl+T on Console.

查看更多
登录 后发表回答