Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an eclipse equivalent to the Visual Studio "Command Window"?

I've just gotten really hooked on the Visual Studio Command Window, being able to type a lot of command rather than reaching for the mouse. Is there an equivalent in eclipse? Or is there another convenient way to go mouse-less?

like image 548
caseyboardman Avatar asked Aug 12 '10 18:08

caseyboardman


3 Answers

The closest editor in Eclipse would be a Scrapbook page, where you can execute Java expressions without having to create a new Java program.
This is a neat way to quickly test an existing class or evaluate a code snippet.

But this isn't exactly equivalent to a Visual Studio Command Window, and more akin to an Immediate Window in Visual Studio.
Still it can be handy.

alt text
(source: eclipsezone.com)

alt text
(source: eclipsezone.com)

like image 92
VonC Avatar answered Nov 08 '22 17:11

VonC


If you are looking for a quick, mouse-less way to type and execute commands, check out the Quick Access feature. Just type Ctrl+3 and start typing the name of a command. alt text http://img.skitch.com/20100812-dk21k8kfgjx3finmpx1qmnrwj1.png

You can execute commands, however, it is lacking the parameters. Eclipse is missing the scripting capabilities. There are some plugins and projects that try to complement that, but nothing standard.

like image 24
zvikico Avatar answered Nov 08 '22 15:11

zvikico


Window > Show View > Display

In the Display window, you can type whatever Java code you want, select it and evaluate the result clicking on the "Evaluate" button.

like image 40
Paulo Guedes Avatar answered Nov 08 '22 17:11

Paulo Guedes