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
Alt+Up or Alt+Down to move lines
ctrl-shift-r and its buddy, ctrl-shift-t, to open a resource or type, respectively. Resources includes all files in your open projects (including non-java files), and types includes java types either in your projects, or in a library included in the projects.
Alt-Shift-R stands for rename, not refactor. Refactoring is a more general term (as defined by the book).
Nevertheless, it is one of my favorite refactorings. Others include:
Alt-Shift-M: Extract Method (when a code block or an expression is selected)
Alt-Shift-L: Extract Local Variable (when an expression is selected)
Extract Local Variable is especially useful when I don't remember (or bother to type) the result type of a method. Assuming you have a method
JdbcTemplate createJdbcTemplate()
in your class, write some code such as this:Select the expression
createJdbcTemplate()
, click Alt-Shift-L, type the name of variable and press enter.Alt+Shift+Up Arrow does escalating selection. Alt+Shift+Down does the opposite.
CTRL + D - to delete current line