So I was using Eclipse and I went to go copy some import statements I had selected. I somehow mis-typed, and the coolest thing happened: a snippet
package was created, and a Snippet.java
class was created that looked like this:
package snippet;
public class Snippet {
public static void main(String[] args) {
// Selected code
}
}
Does anyone know what the keyboard shortcut for doing this is? It seems like a immensely useful feature to have. I have tried searching online, but had no luck.