Accustomed to eclipse development Java programs, the company's recent projects are developed by Idea, while Android Studio is also an idea prototype developed, learning Android development, so moving away from eclipse to idea seems to be a trend. , the use of development tools is a habit of the problem, accustomed to the development of high efficiency, not accustomed to the use of tools, but also to Baidu. The ultimate goal of cultivating a new habit is to forget the old habits, of course, everything is not absolute, it is possible that after a long time not to use eclipse, will forget the use of the skills, shortcuts and so on. So, in order to prevent the old habits from being completely forgotten, here is a summary of the use of Eclipse or myeclipse, which I used in the development process.
First, shortcut keys
1, Hint: alt+/
2. Format: ctrl+shift+f
3, enter a pair of symbols, such as "", (), will be automatic completion, input after jumping: tab
4. Find out who is calling a method: Select the method name, Ctrl+shift+g
5. View the inheritance relationship for a class: Select the class, Ctrl+t
6. Find the class or file by file name: Ctrl+shift+r
7, ALT + up/down, move current line to top or bottom
8, ctrl+alt+ up/down, copy current line to top or bottom
9, Comment: ctrl+/line comment, shift+ctrl+/block comment
10, method or class name upper input:/** and then enter, will automatically generate document comments
11, Ctrl+d Delete when the forward
12, check the method name, click F2, prompt method information
13, prompt error, etc.
Second, set
1. Shortcut keys add a set, get method, override or implement a method of the interface: Shift+alt+s
2, Version control: project name or file name, right-click
Click File name, right-->team->show history:
Version control update when an error occurs, you can modify the current local version of the file to the left by compare with, making sure that your code exists and that the other code is the same on the server. For completely overwritten, use get contents.
3. Maven
Maven Settings
MAVEN uses:
Update Dependencise is capable of updating jar package dependencies
Maven Add Dependency:
Enter the name of the jar package and automatically retrieve it for you
Jar packages in the Reindexmaven library
4. Set the font
5. Set the encoding of the entire tool
6. Configure project output file address, add local jar package, etc.
Configure Build Path
7. Automatic compilation
8, Junit-test
I think this is more useful than idea, you can directly select the method name to test, right-click Run as to
Eclipse Usage Tips