如何在Mac上的Intellij 2017+中访问助记符? [英] How to access mnemonics in Intellij 2017+ on Mac?
问题描述
在Intellij代码库中有一些证据表明它们在Mac中支持 ALT
(/Meta)+ CTL
-(助记符)
.
例如:在 platform/platform-api/src/com/intellij/openapi/MnemonicWrapper.java
if(SystemInfo.isMac& Registry.is("ide.mac.alt.mnemonic.without.ctrl")){
,并且 ./platform/util/resources/misc/registry.properties
中相应的 resource
值设置为 true
:>
ide.mac.alt.mnemonic.without.ctrl = true
但是,在我的 Sierra <上,同时按下这两个修饰键以及..说..
F
(对于主菜单中的 File
)不起作用./code>和最新的 2017.1
intellij.
这应该起作用吗?还有其他方法可以使助记符在Mac上运行.
注意:请不要评论/回复在Mac上不鼓励/不支持助记符" .我 更多 远未意识到OS/X上的这一可怕缺陷.但是,在以前的 Intellij 版本中, 可以在Mac上使用助记符:这会很大促使他们再次工作.
更新 Intellij Jetbrains支持负责人请求了 YouTrack
问题.它在这里
在Mac上,默认助记符应与 Ctrl + Alt 和 Alt 一起使用.
如果只希望使用 Ctrl + Alt ,请在 -Dide.mac.alt.mnemonic.without.ctrl = false
中添加>帮助 |编辑自定义VM选项
(处理基于Alt的助记符快捷键以及基于Ctrl + Alt的快捷键.仅影响MacOS.)
IntelliJ IDEA 2017.1.x版本中还存在一个错误,该错误导致助记符通过对话框中的 Alt 起作用,而不是在菜单中起作用.在 Help
|中添加 -Dide.mnemonic.helper.old = true
|编辑自定义VM选项
将解决此问题.该修复程序将于2017.2.x中提供.
There is some evidence in the Intellij codebase they support ALT
(/Meta)+CTL
- (mnemonic)
in Mac.
E.g: in platform/platform-api/src/com/intellij/openapi/MnemonicWrapper.java
if (SystemInfo.isMac && Registry.is("ide.mac.alt.mnemonic.without.ctrl")) {
And the corresponding resource
value in ./platform/util/resources/misc/registry.properties
is set to true
:
ide.mac.alt.mnemonic.without.ctrl=true
However pressing those two modifier keys together with .. say .. F
(for File
in the main menu) does not work for me on Sierra
with the latest 2017.1
intellij.
Is this supposed to work? Is there any other way to get mnemonics working on Mac.
Note: please do not comment/respond "mnemonics are not encouraged/supported on mac". I am more than well aware of this terrible shortcoming on OS/X. However in previous versions of Intellij it has been possible to use mnemonics on Mac: and it would be a big boost to have them working again.
Update A YouTrack
issue was requested by the Intellij Jetbrains support lead. It is here https://youtrack.jetbrains.com/issue/IDEA-175624
CTRL-ALT-(Mnemonic) DOES work.
The JetBrains lead Serge Baranov also mentioned that ALT-(Mnenomic) is supposed to work. It did not / does not for any of my laptops on 2017.X.
The Jetbrains support team led by Serge Baranov worked diligently on this - but were unable to reproduce. I expressed surprise since a half dozen installations on my side - all do not work. Apparently for their testing team it does work. One of my Mac's was factory new in June 2017 with Sierra and I installed IJ Ultimate 2017.1 without any changes from defaults. It did not work.
It is unclear what conditions were required for the Alt-Mnemonics to work on 2017.X.
* Another update* . Jetbrains has provided a fix for this: see last answer.
Make sure mnemonics are not disabled in IntelliJ IDEA settings:
By default mnemonics should work with Ctrl+Alt and Alt on Mac.
If you prefer only Ctrl+Alt, add -Dide.mac.alt.mnemonic.without.ctrl=false
in Help
| Edit Custom VM Options
(Processes Alt-based shortcuts for mnemonics in addition to Ctrl+Alt-based shortcuts. Affect MacOS only.)
There is also a bug in IntelliJ IDEA 2017.1.x versions which causes mnemonics to work via Alt in dialogs, but not in the menu. Adding -Dide.mnemonic.helper.old=true
in Help
| Edit Custom VM Options
will workaround this issue. The fix will be available in 2017.2.x.
这篇关于如何在Mac上的Intellij 2017+中访问助记符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!