Strange key mapping in Android Studio

Add this line:

actionSystem.force.alt.gr=true

to this file:

...\Android\android-studio\bin\idea.properties

As written here: http://youtrack.jetbrains.com/issue/IDEA-91975


Yes, well... its problem with "old" keyboards. Newer keyboards don't have Alt Gr keys and IDE doesn't count on this in default.

Solutions:

  1. Buy a new keyboard with no Alt Gr on it (using right Alt instead of Alt Gr is working for me)
  2. Go to File -> Settings -> Keymap and search for implementation - delete Ctrl + Alt + B, hit "Apply" and you can now use this shortcut for "{"
  3. As already mentioned below... add following line to ..\<Android Studio folder>\bin\idea.properties:

    actionSystem.force.alt.gr=true

    (update) Since newer version of AS (not sure which one, should be 2.3.3+), you don't need to manually access the properties file. Go to Help -> Edit Custom Properties and add actionSystem.force.alt.gr=true there.