eclipse - Eclipse 中鲜为人知但有用的特性

标签 eclipse

我已经使用 Eclipse 很长时间了,一个鲜为人知但非常有用的功能是 Scrapbook Page,它允许您执行 Java 代码的各个部分,而无需将它们作为完整的类。例如,如果我需要执行这个简单的 for 循环,我可以通过创建一个剪贴簿页面(文件->新建->其他->剪贴簿页面)然后输入以下内容并按下“执行所选文本”来实现或者 Ctrl-U 将直接执行代码

for (int i=0; i < 10; ++i)
{
    System.out.println("Here is the scrapbook page line: " + i);
}

请发布 eclipse 中可用的其他鲜为人知但有用的功能。我知道 SO 中有条目提到了 eclipse 中可用的有用快捷方式,但是这个是关于被遗忘或鲜为人知的功能

最佳答案

插件 Spy (Alt+Shift+F1) 当然不是很宣传。
然而,如果您对“我如何开发一个看起来像 eclipse 中的功能 X”有任何疑问,那么快速找到实现该功能的正确 eclipse java 源会非常有用!

alt text
(来源:willianmitsuda.com)

另见此 Guide to eclipse3.5 :

The Plugin Spy gives you easily information about the running UI.
Press Alt+Shift+F1 to get information about the current running Eclipse plugin / data types / screen.
This way you can get immediately access to the plugin which is currently running.



alt text
(来源:vogella.de)

Eclipse 3.5 introduced the possibility to check which plugin contributed a menu. Press "Alt+Shift+F2" and select a menu to see who is contributing this menu



alt text
(来源:vogella.de)

关于eclipse - Eclipse 中鲜为人知但有用的特性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1464026/

相关文章:

Java 8 分配了太多内存

java - 使用 logback 和 slf4j 记录 hibernate 参数值

java - SVN颠覆性的。 eclipse 。本地存储库

eclipse - 使用eclipse作为svn客户端

java - 我的 java GUI 代码出了什么问题,Eclipse 没有响应?

eclipse - Maven 3 的最佳 Eclipse 插件

eclipse - 如何更改eclipse中 "run as"菜单中选项的顺序?

java - 如何在eclipse中从Maven项目创建Jar文件

java - Android:使用 HTML Unit 和 Eclipse 时出现 CSS 错误

java - maven flex 构建失败