对于 Mac OS X,IntelliJ 中的“ Alt-Insert”相当于什么?

对于 Mac OS X,IntelliJ 中的“ Alt-Insert”相当于什么?

许多 Mac 键盘没有插入键,甚至在连接 PC 键盘时,insert键也不起作用。

56089 次浏览

The equivalent shortcut is Command+n.

It may depend on your keymap. I recommend using the 10.5+ keymap wich is optimized for Mac OS (ie cmd-w is close tab and not incremental select). In that case code generate, which you are referring to, is cmd-n.

In case of usage NetBeans for calling constructor, use Ctrl+i

Funnily enough, ctrl+Enter also works for me.

In both IntelliJ or Android Studio you can set it to whatever you want. I use an Apple keyboard and a KVM to switch between my Mac and PC. The keyboard doesn't have an insert key so I had to change it to simply the 'Back Quote' which is just below the esc key on my Apple keyboard. From the Main menu go..

File > Settings

then

Keymap > Main menu > Code > Generate..

to edit, right click (or use the green pencil) and select 'Remove existing shortcut' or 'Add another one'. The IDE will warn you if the key or combination of keys are already used.

"option + return"

is what worked for me.

It is CTRL+I.
This worked for me

you can also use "ctrl + enter"

I have Mac and option+return work for me for android studio 4