From Eclipse to Intellij Idea, you need to set the shortcut key settings, eclipseintellij

Source: Internet
Author: User

From Eclipse to Intellij Idea, you need to set the shortcut key settings, eclipseintellij

Sometimes I want to use auto-completion, because a programmer who is not lazy is not a good programmer. However, the default shortcut for Idea is Ctrl + space. For ordinary people who install the Chinese input method, It's just a cup, you know.

The modification method is as follows:

Choose File> Settings... Ctrl + Alt + S),-> open the Setting dialog box.

In the left-side Navigation Pane, click KeyMap.
Choose Main menu> Code> Completion in the tree on the right.
Next we need to do two things:
1. Remove the Alt + slash Shortcut Key Binding of the original Cycle Expand Word.
2. Right-click Basic, remove the original Ctrl + space binding, and then add the Alt + slash shortcut.

Then Apply, OK.




In intellij idea, the query method is redirected back and forth, which is crazy when you don't know the shortcut key.


The shortcut key in key map is displayed.

Enter "keymap" in the search box on the left, search for keymap, click it, and enter "Navigate" in the search box on the right. A Back forward under the Navigate directory is displayed.

Back to ctrl + alt + ↓ or button4 click

Forward ctrl + alt + → or button5 click

Remove the original binding and add your shortcut key.


Ctrl + HOpen the class hierarchy window and use Ctrl + B/Ctrl + Alt + BCorresponding to the parent class or parent statutory and sub-class or sub-method implementation, view all methods of the current class Ctrl + F12.

It is easy to use classes or methods,Alt + F7. To find the location where the text appears, useCtrl + F/Ctrl + Shift + FSearch in the current window or in the whole process, and then cooperateF3/Shift + F3Move the cursor to the next match.



Ctrl + Shift + F global search eclipse alt + h

Ctrl + Shift + r replace eclipse alt + f globally



Alt + f8 view the value of the selected expression (ctrl + u for eclipse)

F4 Class Structure

Alt 7 Methods

Crtl + N: locate the Java class. The default value is to locate the java file in the project. If you have set the Source of the Development Kit, you can also locate the Java file outside the project, for example, the original Jdk file.

Crtl + Shift + N: locate the file, which also contains the project's Java file. Other files in all projects, such as xml, jsp, and poperty files, can be located by using the change method.


In the module, execute System. getProperty ("user. dir") to obtain the project directory.

Modify Working directorys: $ MODULE_DIR $



After idea svn git modifies the file, the parent folder changes color together.

File --> settings --> version control --> check show directories with changed descendants.




Code Template: Settings operation. In Editor, find File and Code Templates )], select the file type you want to set and edit it.

Example python file:

#!/usr/bin/python# -*- coding: UTF-8 -*-import sysreload(sys)sys.setdefaultencoding('utf-8')class ${NAME}():    pass

Attached template variables:

$ {PROJECT_NAME}-NAME of the current Project; $ {NAME}-NAME of the file specified in the create file dialog box; $ {USER}-current user name; $ {DATE}-current system DATE; $ {TIME}-current system TIME; $ {YEAR}-YEAR; $ {MONTH}-MONTH; $ {DAY}-DAY; $ {HOUR}-HOUR; $ {MINUTE}-MINUTE; $ {PRODUCT_NAME}-name of the IDE for creating a file; $ {MONTH_NAME_SHORT}-abbreviated month, for example, Jan, Feb, etc; $ {MONTH_NAME_FULL}-Full name of the English month, for example, January, February, etc;



Setting-> editor-> Inspections-> java-> Serialization issues-> Serializable class without 'serialversionuid'

After the selection, in your class: Alt + Enter, you will be prompted to automatically create the serialVersionUID.


Cocould not autowire. No beans of 'xxxx' type found

Reduce the Autowired detection level and change the Severity level from the previous error to the warning level or other negligible level.

Setting-> editor-> Inspections-> spring code-> autowiring for bean class

Change serevity to warning


Finds duplicated code disabled

Open Settings → Editor → Inspections.
Search for Duplicated Code in the search box that appears, press enter, cancel the check after Duplicated Code, and OK to cancel the prompt.


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.