IDEA resolve, the shortcut Alt + Enter can not be used

Alt + Enter shortcut Idea is a rather special shortcut keys.

It has many functions, such as: introducing the package, automatically correcting codes to solve problems return values ​​may also be generated.

 

So easy to use shortcut keys, sometimes encountered when the failure, because failure is generally because we like to do such an operation. As shown below:

The solution is:

The first step: Go to Settings-> Keymap-> Search: show Intention Actions shortcut keys. If the default key is correct. So then to see below.

If no intentions show Intention Actions, but do not worry you do not find it

Ctrl + Alt + s to enter the Setting page, select Keymap, then press Alt + Enter (shortcut key responses need to find) directly behind the search box to

Step Two: Click: Editor-> intention-> refactorings. Introduce local variable will check on this option. After clicking Apply, then click Ok option. Then you can normally use the keyboard shortcut Alt + Enter.

Reprinted from ( https://blog.csdn.net/qq_26465035/article/details/80643694 )

Published 274 original articles · won praise 144 · Views 7935

Guess you like

Origin blog.csdn.net/qq_44868502/article/details/103952491