IntelliJ IDEA 评论热键不适用于 Scala
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10897136/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IntelliJ IDEA Hotkey for comment does not work with Scala
提问by John Threepwood
None of the hotkeys (Ctrl+Slashor Ctrl+Divide, Ctrl+Shift+Slashor Ctrl+Shift+Divide) as mentioned heredoesn't work with my IntelliJ IDEA 11.1.2. Installation under Windows 7, 64 Bit. I use a German keyboard layout.
热键的无(Ctrl+Slash或Ctrl+ Divide,Ctrl+ Shift+Slash或Ctrl+ Shift+ Divide)提到这里没有我的IntelliJ IDEA 11.1.2工作。在 Windows 7、64 位下安装。我使用德语键盘布局。
What am I doing wrong ?
我究竟做错了什么 ?
回答by CrazyCoder
This issue is specific to your keyboard layout, you need to change the Comment with line commentand Comment with block commentshortcuts in Settings| Keymap.
这个问题是针对您的键盘布局,您需要更改与行注释评论和注释与块注释的快捷键Settings| Keymap.
回答by Florian Sandro V?lkl
If you do not want to change your keymap, you can alternatively use the ÷- Button on the Numpadof your keyboard. The ÷- Button represents a /on German (and probably most others) -Keyboard Layouts too.
如果你不想改变你的键盘布局,则可以选择使用÷-按钮上的数字小键盘的键盘。本÷-巴顿代表/德国(可能大多数人) -键盘布局了。
Therefore Ctrl+÷(Numpad) and Ctrl+Shift+÷(Numpad) work.
因此Ctrl+ ÷(Numpad) 和Ctrl+ Shift+ ÷(Numpad) 工作。
The good part is, that this will work on machines of other developers who haven't remaped their keymap too.
好的部分是,这也适用于尚未重新映射其键盘映射的其他开发人员的机器。
Edit (see comments below):In case your keyboard does not offer a Numpad, your keyboard-layout might offer you a way to emulate a Numpad (for exmaple using a Fn-key).
编辑(请参阅下面的评论):如果您的键盘不提供数字键盘,您的键盘布局可能会为您提供一种模拟数字键盘的方法(例如使用 -Fn键)。

