简体   繁体   English

使用Eclipse Scala IDE v3.7.2,对多行代码进行注释的关键帮助是什么?

[英]Using Eclipse Scala IDE v3.7.2 what is the key assist for multi-line commenting out of code?

Over the years, have worked with various versions of Eclipse for various programming languages (C, C++, Java, Python, Groovy etc) and now Scala. 多年以来,已经与各种版本的Eclipse一起使用了各种编程语言(C,C ++,Java,Python,Groovy等),以及现在的Scala。 Eclipse is a great IDE. Eclipse是一个很棒的IDE。

I always also install Vrapper plugin as I like VIM bindings in Editor. 我也总是安装Vrapper插件,因为我喜欢在Editor中使用VIM绑定。 On MAC, multi-line comments are usually supported by highlighting the lines to comment / uncomment and hitting Command Shift C. 在MAC上,通常通过突出显示要注释/取消注释的行并单击Command Shift C来支持多行注释。

This does not work on Scala Eclipse IDE v3.7.2 ( http://scala-ide.org/ ) and the key assist (command shift L) does not appear to have a keyboard shortcut for comments listed. 这在Scala Eclipse IDE v3.7.2( http://scala-ide.org/ )上不起作用,并且按键辅助(命令移位L)似乎没有列出注释的键盘快捷键。

Am I missing something obvious here? 我在这里错过明显的东西吗?

I tried various other combinations (control /, control 7 etc) and nothing is working. 我尝试了各种其他组合(控件/,控件7等),但没有任何效果。

Anyone with experience using Scala Eclipse IDE - really appreciate a tip on how to get this working. 有使用Scala Eclipse IDE经验的任何人-非常感谢有关如何使其工作的提示。 It's one of those productivity assists I have always taken for granted. 这是我一直认为理所当然的生产力帮助之一。 Thank you in advance for any advice. 预先感谢您的任何建议。

As per comments above, and confirmation by lulian Dragos - keyboard shortcut (command shift C) DOES work for "Scala class" files. 根据上面的注释,并通过lulian Dragos进行确认-键盘快捷键(命令C键)对“ Scala类”文件有效。 However, it is not currently supported when using a "Scala Worksheet" file type. 但是,使用“ Scala Worksheet”文件类型时,当前不支持该功能。

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

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