英文:
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("hello");
System.out.println("world");
to
// System.out.println("hello");
// System.out.println("world");
and back.
答案2
得分: 0
The translated portion of your text is as follows:
很可能是您安装的第三方插件正在覆盖Ctrl+/的快捷键。您只需转到“窗口”>“首选项”...然后展开“常规”>“键”并搜索“toggle comment”。然后,您可以将其设置为您需要的任何内容,例如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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论