Now that I've been accused as the evil friend, who will provide suggestions for your itching, let me try to do some damage control. How about letting you know about a cool shortcut? No, not the Ctrl+3, the whole world knows and loves that. This is about copying a Java file from other editor.
There are many times you would be using a TextPad or your favourite trivial editor because you double clicked a Java file from your local disk. How do you import that file into your Eclipse workspace?
Either you can locate the file in your disk, drag and drop to the Package Explorer view or simply Ctrl+A in TextPad, select the package in the Package Explorer view and do a Ctrl+V, you are done! A Java file is created for you in that package with right name and also your package statement in the file is correctly updated.
This is very helpful when you are viewing a web page with code (either some public CVS thru web or some nice tips on the web) you can do a copy and paste them in your Package Explorer view.
Cool isn't it?
Despite the usefulness, I haven't seen this in any documentation, does anyone knows a place with complete list of wonderful features like this?
Oct 13, 2007
Wow shortcut!
Subscribe to:
Post Comments (Atom)

4 comments:
It's been there for a while:
http://www.eclipsezone.com/eclipse/forums/t85652.rhtml
Ah! I thought it was introduced in 3.3. Hmmm, how did I miss such a nice feature for so long?
it was in 3.3 New and Noteworthy so yes it was introduced in 3.3
aahh sorry, I've read tooo fast your entry. In 3.3 there is a simmilar but way cooler feature.
Post a Comment