IntelliJ IDEA sets the code prompt or auto-completion shortcut key function, intellijidea

Source: Internet
Author: User

IntelliJ IDEA sets the code prompt or auto-completion shortcut key function, intellijidea

For Java developers in China, Eclipse may be the most widely used.
There are also a lot of programmers who use Idea, and everyone is advocating its advantages.
If you try it for half a month, you may feel different. The key is to check your proficiency and configuration.

Auto-Prompt shortcut key

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 +/(forward 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.

If this key combination has been used, you can directly use it when a conflict is prompted.

Replace All)

The global replacement of Idea is called "Replace in path". in the Project view, right-click the directory to be searched and select "Replace in path…" in the pop-up menu ...", Enter relevant information in the pop-up box, as shown in:

Replace_all

The shortcut key is modified as follows:

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

In the left-side Navigation Pane, click KeyMap.
The default Idea shortcut key cannot be modified. Select the Keymaps above, such as Eclipse, and copy it.

Search for replace in the upper right corner and find Replace in path... This line:

Path is (Main Manu-Edit-Find-Replace in path ...)

Right-click this line and add a shortcut key, for example, Ctrl + Shift + F.

Then Apply, OK.

If this key combination has been used, you can directly use it when a conflict is prompted.

Summary

The preceding section describes how to set the code prompt or automatically complete the shortcut key function of IntelliJ IDEA. I hope it will help you. If you have any questions, please leave a message, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.