Alright it can be a lame question, but everybody uses these things differently. What's some of the best time savers out there for this IDE.
Tom
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
CTRL+3 brings up a type-ahead list of any menu command.
Breakpoint on Exception
Eclipse let you set breakpoints based on where an Exception occurs.
You access the option via the "j!" alt text http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/images/org.eclipse.jdt.debug.ui/elcl16/exc_catch.png icon in the debugging window.
alt text http://blogs.bytecode.com.au/glen/2007/04/06/images/2007/AddExceptionWindow.png
The official help topic "Add Java Exception Breakpoint " has more on this.
to suspend execution when subclasses of the exception type are encountered.
For example, if an exception breakpoint for
RuntimeException
is configured to suspend on subclasses, it will also be triggered by aNullPointerException
.alt text http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.user/reference/breakpoints/images/ref-breakpoint_suspendsubclass.PNG
Not so Hidden but IMO the best Trick.
Assuming Default Settings (and you have'nt added new snippets)
Highlight (or select) a Text (String or Variable)...Press Ctrl+Space. Hit End+Enter. the "sysout" snippet is triggered which wraps the selection around as its parameter.
eg.
I love it so much that i've implemented a similar snippet for Android's Toast and Log.i() HUGE Time saver during Manual Debugging....
Absolutely, Ctrl+Q to go to last edit location. It is very useful just after being interrupted by phone, boss or others.
Ctrl+Alt+UP or Ctrl+Alt+DOWN to copy lines
Code completion supports CamelCase, e.g., typing
CWAR
will show a result forClassWithAReallyLongName
. Start using this feature and you'll never type another long classname again.(parts copied from another answer because i think answers w/ just one hint/tip are best for polling)