How to run system shell/terminal inside Eclipse?

2019-03-25 02:48发布

问题:

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.

回答1:

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.

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.



回答2:

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.