1

I've recently migrated from Eclipse to Android Studio and I had several problems which i mostly solved. One, which I don't have any idea to do with is, that the opening bracket shortcut AltGr+B is not doing anything.

I've tried to:

  • In Settings change the Keymaps to Eclipse | NO SUCCESS
  • Add the line actionSystem.force.alt.gr=true to idea.preferences | ACCESS TO FILE DENIED

Do you have any idea what to do in my case?

GabrieleMartini
  • 1,665
  • 2
  • 19
  • 26
marson
  • 913
  • 10
  • 32

2 Answers2

9

Well after hours of research and not finding solution online I've decided to solve it by myself. The thing which solved this issue (and I thing a lot of other shortcut problems) was just: going to Settings -> Keymaps and hitting the "Find actions by shortcut" button on the top right. I've just pressed the shortcut (in my case AltGr+B - which THE SAME shortcut as CTRL+ALT+B) and found out, that this shortcut was assigned to the "Implementation" action. I just right clicked the "CTRL+ALT+B" area and removed the shortcut. After this process everything works well.

I hope that more people will find the solution here!

jesterjunk
  • 2,342
  • 22
  • 18
marson
  • 913
  • 10
  • 32
  • Great find. I'm using Eclipse, and on a different keyboard map, so, I'd never find this one... ;) – Phantômaxx Mar 06 '15 at 13:55
  • 1
    Yeah, I'm still seriously thinking over the migration to Android Studio. After more than year working with Eclipse, it's pretty shocking for me to switch to AS, haha – marson Mar 06 '15 at 14:15
  • After 5 years of Eclipse. I tried migrating to AS, but I immediately switched back. – Phantômaxx Mar 06 '15 at 14:28
  • Thanks a lot. I always used copy+paste for " { " and " [ ". This was already frustrating after two days of using android studio :) – enapi Jun 23 '16 at 12:04
2

the simple solution is adding the following line to the

<Android Studio folder>\bin\idea.properties file:

actionSystem.force.alt.gr=true

I placed this setting in the first line of the file (maybe it's not necessary) and it works for me nicely.

Fun fact, it worked for me nicely by default with Android Studio, and then suddenly it isn't (maybe I accidently pressed a shortcut or something o.O). But this solved the problem.

Keep in mind that if you update Anddoid Studio, the update can (and usually will) overwrite the idea.properties file, so keep a copy of it and overwrite after update (or the better is just copy this line from the old to the new).

An IDE restart is required to take effect.

Drusantia
  • 327
  • 1
  • 8