I recently convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different code snippets into named buffers and paste them as I see fit, doing something like repeating a common idiom. For example, I would have it so that "ap insert
DatabaseHandle handle = null; try { handle = DatabaseConnectionPool.newHandle();
and then "bp will embed
handle.commit(); } finally { handle.rollback(); DatabaseConnectionPool.returnHandle(handle); }
And I could repeat them both again and again throughout the day. In an answer to another question, someone mentioned that you can “manage code snippets” in Eclipse, but didn't mention how to do it. So now I ask: how do you manage code snippets in Eclipse?
eclipse code-snippets
Paul Tomblin Oct 26 '08 at 13:03 2008-10-26 13:03
source share