Search code examples
android-studioazerty-keyboard

Cannot close curly brackets on Android Studio with a AZERTY keyboard


Since yesterday, I cannot close curly brackets on Android Studio with my keyboard... I have an AZERTY french keyboard, and the closing curly bracket is optained by doing "alt gr" + "=".

  • All the other char involving "alt gr" key are working on Android Studio (including opening curly brackets)
  • I can insert closing curly brackets by "copy/pasting" this char in Android Studio

  • This problem occures ONLY in Android Studio (here for instance, it is working: }})

  • I already restart both Android Studio and my computer, but that does not solve the problem

Do you guys had some problem similar? Is it a temporary bug of Android Studio?

Thanks in advance!


Solution

  • The problem is probably with the software maybe there's is a setting which you might have accidentally messed up while snooping around. Was it working earlier?\

    edit:

    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