14

I am new to Android studio, it seems to be great IDE. But I have found that it has really strange key and shortcut mapping. I am using Czech keyboard.

When I try to type ">" by pressing Right ALT + . the symbol is not appearing, and I got message box that says "Go to custom Region. There are no custom foldings regions in the current file."

It is really strange behaviour, I have problem with writing many more characters like brackets,..... I tried to set keymap profiles to Visual Studio and more. But nothing seems to work. I didn't have any of these problems in any other IDE (Netbeans, Eclipse, Visual Studio, Xamarin)

4

6 回答 6

33

添加这一行:

actionSystem.force.alt.gr=true

到这个文件:

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

如此处所写:http: //youtrack.jetbrains.com/issue/IDEA-91975

于 2013-11-13T17:20:30.307 回答
8

是的,嗯......它的问题是“旧”键盘。较新的键盘没有Alt Gr键,默认情况下 IDE 不依赖此键。

解决方案:

  1. 购买一个没有Alt Gr它的新键盘(使用正确Alt而不是Alt Gr为我工作)
  2. 转到File -> Settings -> Keymap并搜索实施 - 删除Ctrl + Alt + B,点击“应用”,您现在可以使用此快捷方式“{”
  3. 正如下面已经提到的......将以下行添加到..\<Android Studio folder>\bin\idea.properties

    actionSystem.force.alt.gr=true

    (更新)由于新版本的AS(不确定哪一个,应该是2.3.3+),您不需要手动访问属性文件。去那里Help -> Edit Custom Properties添加actionSystem.force.alt.gr=true

于 2014-02-02T16:20:24.553 回答
3

转到 Preferences -> Keymap 并选择 Mac OS X 作为 Keymaps。

于 2014-08-15T09:05:04.877 回答
2

我是 Visual Studio 的长期用户,因此想利用我使用 Visual Studio 获得的所有键盘快捷键。

在 Android Studio 上,我首先将 Keymap 更改为 Visual Studio。您可以通过在 Windows 上使用 Alt+F7 来执行此操作,然后搜索 Keymap。

通过在 Android Studio 中使用 Visual Studio Keymap,我只得到了与调试相关的映射,这仍然是我在 Visual Studio 中使用的一小部分。

所以继续添加/修改更多映射。这是 github 链接 https://github.com/vinayakg/VisualStudioKeymapforAndroidStudio/blob/master/settings.jar

公关的欢迎。

于 2015-04-17T07:34:38.970 回答
0

至于 '>' 符号 (AltGr + .) 和 Android Studio 1.0.1,进入 File>Settings,在 IDE Settings 部分选择 Keymap,搜索“GotoCustomRegion”项(位于 MainMenu-Navigate 中)并删除其映射(通过上下文菜单)。

于 2015-01-28T11:15:00.690 回答
0

如果您使用的是 macOS 最新版本,并且快捷方式出现异常行为,请尝试以下操作:

转到 Android Studio -> 首选项 -> 键盘映射

现在从“Mac OS X”更改为“Mac OS X 10.5+”并点击应用。

选择 Mac OS X 10.5+

于 2020-02-09T09:24:16.980 回答