Thursday, November 14, 2013

Pasting sample code into Eclipse

I recently discovered a very cool feature of the Package Explorer in the Eclipse IDE. Namely, if you copy the source for some class (say from a tutorial website), you can simply paste it directly into the Package Explorer view.  It doesn't even have to be a full class.  If its a snippet of code, Eclipse will create a new class file called snippet and add the code into it.  Very cool.
Post a Comment