简体   繁体   English

非美式键盘的 IntelliJ Idea 快捷方式

[英]IntelliJ Idea shortcuts with non US keyboard

My Mac keyboard is a Portuguese one.我的 Mac 键盘是葡萄牙语键盘。 Although it's QWERTY, many symbols are in different places (namely, Shift-some number).尽管它是 QWERTY,但许多符号位于不同的位置(即,Shift-某个数字)。 In Eclipse, if a shortcut involves a character which, in itself, is a combination of keys (eg '/', which is Shift-7) I can do, for instance, command-shift-7 to comment a piece of code.在 Eclipse 中,如果快捷方式涉及一个字符,该字符本身就是键的组合(例如,'/',即 Shift-7),我可以使用例如 command-shift-7 来注释一段代码。

In IDEA, however, this doesn't work.但是,在 IDEA 中,这不起作用。 To go "back", the keyboard shortcut is command-[, but to get the '[' I have to press option/alt-8, and command-option-8 doesn't do the trick.要“返回”,键盘快捷键是 command-[,但要获得 '[' 我必须按 option/alt-8,而 command-option-8 不起作用。 Is there some option I can enable to make it work?我可以启用一些选项来使其工作吗?

IntelliJ has a few pre-configured keymaps. IntelliJ 有一些预配置的键盘映射。 Maybe you are not using the best one for you or your keyboard.也许您没有为您或您的键盘使用最好的。 If you are used to working with eclipse, maybe you will like the Eclipse keymap better.如果您习惯使用 Eclipse,也许您会更喜欢 Eclipse 键盘映射。

In addition you can create your own keymap by copying an existing one and modifying it.此外,您可以通过复制现有的键映射并对其进行修改来创建自己的键映射。

The keymap settings are under File -> Settings... -> Keymap键盘映射设置在文件 -> 设置... -> 键盘映射下

More on that in the jetbrains site: https://www.jetbrains.com/help/idea/2016.1/configuring-keyboard-shortcuts.html更多关于 jetbrains 网站的信息: https ://www.jetbrains.com/help/idea/2016.1/configuring-keyboard-shortcuts.html

Unfortunately, it is not possible without some fiddling.不幸的是,没有一些摆弄是不可能的。 Myself I have a Swedish keyboard, and I know that some German users were helped by this workaround.我自己有一个瑞典语键盘,我知道一些德国用户通过这种解决方法得到了帮助。 It is not a solution , as the IDEA keymap menu instructions will be inconsistent;这不是解决方案,因为 IDEA 键盘映射菜单说明会不一致; Commenting code will not be possible by cmd+/ as the keymap settings will say, it will in practice be cmd+-. cmd+/ 将无法评论代码,因为键盘映射设置会说,它实际上是 cmd+-。 See IDEA-63779 and IDEA-165950 for more information.有关更多信息,请参阅IDEA-63779IDEA-165950

1. Install JB SDK Bintray Downloader by cmd+shift+a "plugins" , and search for "bintray", select "JB SDK Bintray Downloader" and hit install. 1.通过cmd+shift+a“plugins”安装JB SDK Bintray Downloader ,搜索“bintray”,选择“JB SDK Bintray Downloader”,点击安装。

2. cmd+shift+a and enter "bintray" . 2. cmd+shift+a 并输入“bintray”

3. In the pull down list, select "jbsdk8u112b251_osx_x64.tar.gz" or later. 3.在下拉列表中,选择“jbsdk8u112b251_osx_x64.tar.gz”或更高版本。 You will find it at next to the last in list.您会在列表中最后一个的旁边找到它。 Hit "Download" and then "Install".点击“下载”,然后点击“安装”。

4. Allow IDEA to restart . 4.允许IDEA重新启动

5. Open menu IntelliJ IDEA -> About Intellij IDEA and verify two things: (a) that JRE is of build ...819... and that JVM is "by JetBrains sro". 5. 打开菜单 IntelliJ IDEA -> 关于 Intellij IDEA 并验证两件事:(a) JRE 是构建 ...819... 并且 JVM 是“由 JetBrains sro”。

6. Open Help -> Edit Custom Properties... and have a new configuration created, enter: com.jetbrains.use.old.keyevent.processing=true 6. 打开 Help -> Edit Custom Properties...并创建一个新配置,输入:com.jetbrains.use.old.keyevent.processing=true

7. Exit and restart . 7.退出并重新启动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM