Next generation Java development tools idea, using experience sharing

Source: Internet
Author: User

Shortcut keys (90% common keys):

Consult source code commonly used:

CTRL + N Query class

ctrl+d/x Row Copy Row Delete

Ctrl+q brief description of the method

Ctrl+alt+ Click, method implementation

ctrl+/Modify the Keymap,completcode. Full-complement code

CTRL + ALT + LEFT ARROW to return to the previous cursor

Ctrl + Alt + L format code
Ctrl + Alt + O optimize import

Ctrl + SHIFT + "+/-" Folding code

SHIFT+F6 changing the variable name


Coding is commonly used:

Alt+enter introduction of dependency packages, generation of method annotations, etc.

Alt+insert implementation interface, generation method, etc.


Usage Summary:

The 1.NEW module is the creation of the project, just like the NEW project in Eclipse, otherwise the directory will be wrong.

2.VCS Menu below Checkout ... There are various SVN tools, I use subversion, to fill in the branches can

3.maven projects has a lightning button on the flag, the pre-test time to close, or will not get through.

4. There are a variety of missing packages (in fact there is no lack of dependency packages) can not be compiled through the error, and Eclipse, and in the deployment of a tomcat and other servers under the Deployd file cache, do not recognize the project.

Workaround, modify the server configuration, before lauch below, add Maven's clean command to list top, then make->build, and so on.

The editor in 5.idea modifies the font place in, File->settings->editor->colors&fonts->font

Select the Font size check box can not be clicked, the solution is to find the top Save as Save a scheme name in order to customize the settings.

6. The window and the editor are changed to the theme option in the Black file->settings->appearance&behavior-->appearance.

7. File->settings->appearance&behavior->keymap, commonly used is the line copy and delete, code collation, annotated, generate Setter/getter code ( This can be replaced with Lombok plug-in, very good, there is a jar library in file Settings->flugins, three ways to add jar, just need the name is OK. Very convenient)

Refresh in 8.eclipse, cleanup restart is replaced with file->invalidate catch/restart in idea. Encounter various packages and other obvious compilation of different issues, can clean up Maven fame after (that is, the above 4 of the problem)

9. More commonly used shortcut, CTRL + N query class, and then through the project name next to the round button to locate the specific location of the class, this is useful for reading new items.

The F12 network in 10.fierfox view the requested action

11. Display number of rows File->settings->editor->appearence->showline

12. Circular dependency problem, in a module refers to another module of the class, resulting in the compilation is not over, although the class has been optimized to import the package, but the dependency still exists. Workarounds need to be manually removed in project Structure->modules

13. Single Point commissioning: http://www.th7.cn/Program/net/201410/296492.shtml

14. The program cannot find the jar package, but it is already in a dependency. Workaround: Projectstructure into the project where the jar is not found, add jar support.

15. Fight the war package, click Project Structure, select artifacts,+ Add Web Application Archive, select the output path, OK, compile the project. War output to destination path


Next generation Java development tools idea, using experience sharing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.