lundi 17 décembre 2007

Pimp your eclipse with .jpage : Scrapbook Java execution

I haven't used Eclipse in a few months since i didn't need it for various projects, and since i only have a gig o' RAM i tend to prefer Kate .

I'm back these days for a plain java project , and forgot how to use a cool , well hidden feature : execute custom java expressions in a scrapbook-like file, without the need to declare a class or even a Main method. Very useful when testing out if conditions , regexes, ...

I'm posting it here to avoid forgetting about it again but for some of our many readers it might be old news and for that i apologize :)

If you're still reading , here's to use the nifty feature :

Create a blank file named test.jpage ( the extension is important , the name is as important as Roubaix's rat population) :

It'll have a scrapbook-like icon with a big "J" on it .

In there you can write any java Statement you like , select the lines you want , and execute them either trough the run icon above , or with CTRL+SHIFT+D.Syntax highlighting, Autocompletion,and auto-imports are also available . That's hot !

Aucun commentaire: