Eclipse ctrl+/ 用于 // 注释整个 Java 部分。如何恢复它?

huangapple go评论98阅读模式
英文:

Eclipse ctrl+/ used to // comment an entire section of Java. How do I get it back?

问题

我非常怀念使用Ctrl+/来注释Java和JavaScript整个部分的功能。最近Eclipse的最新下载似乎破坏了这个功能。我该如何恢复它?

英文:

I really miss ctrl+/ for // commenting entire sections of java and javascript. The most recent downloads of Eclipse have apparently broken this feature. How do I get it back?

答案1

得分: 2

我有 Eclipse 2020-06,Ctrl+Shift+C 对我有效。 代码从

System.out.println("hello");
System.out.println("world");

// System.out.println("hello");
// System.out.println("world");

再变回去。

英文:

I have Eclipse 2020-06 and <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd> worked for me. Code goes from

System.out.println(&quot;hello&quot;);
System.out.println(&quot;world&quot;);

to

// System.out.println(&quot;hello&quot;);
// System.out.println(&quot;world&quot;);

and back.

答案2

得分: 0

The translated portion of your text is as follows:

很可能是您安装的第三方插件正在覆盖Ctrl+/的快捷键。您只需转到“窗口”>“首选项”...然后展开“常规”>“键”并搜索“toggle comment”。然后,您可以将其设置为您需要的任何内容,例如Ctrl+/(这是我的默认设置)。此外,请确保“当”列为“编辑Java源代码”。请参考屏幕截图。Eclipse ctrl+/ 用于 // 注释整个 Java 部分。如何恢复它?

英文:

Most likely a third-party plugin you installed is overriding your key shortcut for Ctrl+/ . You can just go to Window > Preferences... Then expand General > Keys and search for "toggle comment". You can then set it to whatever you need, like Ctrl+/ (that's the default for me). Also, make sure the column "When" is "Editing Java Source". See ScreenShot.Eclipse ctrl+/ 用于 // 注释整个 Java 部分。如何恢复它?

huangapple
  • 本文由 发表于 2020年8月12日 06:34:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/63367278.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定