can't get mac key bindings to work

已回答

I'm running IntelliJ in an Ubuntu 16.04 VM
I set the IntelliJ key bindings to 'Mac OSX 10.05+'

copy should now be 'Meta+C' 

paste should now be 'Meta+V'

My understanding is that the Meta key is what they call the Super key on Ubuntu and is the key directly to the left of the space bar.

well it doesn't work.

how can I get this to work?

0

Go to the Keymap settings and try to assign a shortcut with the Super key, see how it's recognized in the IDE. Is it detected as Meta?

0

when i press that key, the desktop search window opens....

tried adding a shortcut - no joy

i've tried gnome tweak tool too ..

nothing seems to work

 

0

it seems to be bound to the ctrl key as the VCS operations window pops up when I do <META>+V
this makes no sense

0

You will need to change it via your system configuration somehow. This is not IDE specific problem.

0

I tried this too:  https://manuel.bernhardt.io/2017/04/10/intellij-idea-os-x-shortcuts-ubuntu-gnome/

no joy

why don't  you guys do some testing and let us know how to do it?

0

We don't know what keyboard you have, what exact key you press and how your system is configured to treat this key. It's pretty hard to test without knowing all these or having the exact same system/keyboard. keymap.windows.as.meta option works for the Win keyboard key which is normally the second key to left of the space. The first key to the left of the space is usually LAlt.

Your system may already use this key for something else and unless you unpack this action, you will not be able to use it in other apps.

0

pretty common setup ... macbook pro, Ubuntu 16.04 running in a vm (VMWare Fusion)

0

I don't have this setup, unfortunately. You may need to configure vmware fusion keys like described here: https://askubuntu.com/a/82216/9280.

0

Ok so after a couple of days of pulling my hair out over this, I think I have solved the problem. If you are running IntelliJ on Ubuntu 16.04 via VMWare Fusion on a Macbook Pro, this might be for you:

1. In VMWare Fusion settings on the VM itself, go to 'Keyboard' and ensure that 'Mac Profile' is the default (it will be at the top of the list and look like 'Mac Profile - Default')

2. In Ubuntu, go to Ubuntu Software and install 'GNOME Tweak Tool'

3. Launch the tweak tool and under 'Typing', expand 'Alt/Win key behavior' and select 'Meta is mapped to Left Win'

4. From a terminal, install this:

sudo apt-get install compizconfig-settings-manager
run it:
ccsm

click on 'Ubuntu Unity Plugin'
click on 'Launcher' tab
click on the button for 'Key to show the Dash, Launcher and Help Overlay'
disable it via the checkbox

5. log out of Ubuntu and log back in

6. In IntelliJ settings, keymap, select 'OSX 10.5+'

Now you should be able to copy/paste text 'Mac style' using the command-C command-V keys

pretty straightforward really :)

2

请先登录再写评论。