在 Eclipse 中选择右大括号后显示函数/语句声明?
我想知道您是否可以在 Eclipse 中执行类似于此功能(Zend Studio 5.1 提供)的操作。这里有一个它的实际图像:http://tinypic.com/r/2d1pao1/6< /a>
正如您所看到的,它并不只是像 Eclipse 那样在起始大括号周围放置一个框,它实际上会向您显示声明。当您有一个很长的声明并且不想向上滚动并找到其开头时,这尤其方便。
I'm wondering if you can do something similar to this functionality (available with Zend Studio 5.1) in Eclipse. There is an image of it in action here: http://tinypic.com/r/2d1pao1/6
As you can see, it doesn't just put a box around the starting brace like Eclipse does, it actually shows you the declaration. This is especially handy when you have a really long declaration and don't want to scroll up and find its beginning.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(2012 年 5 月更新)
最新的“Eclipse 3.8 和 4.2 M7 - 新增功能和值得注意的”介绍Java 编辑器中的括号匹配改进:
原始答案(2009 年 12 月)
实际上,您已经有了 的变体大纲视图
位置(大括号末尾或其他任何位置),大纲视图将...概述您所在的相关函数。
如果您单击函数中的任意 sstatic.net/P8ux5.png" rel="nofollow noreferrer">
(来源:eclipse. org)
否则,您需要像 Eclipse Source Helper
(更新站点:http://www.hexapixel.com/update)
(Update May 2012)
The latest "Eclipse 3.8 and 4.2 M7 - New and Noteworthy" introduced Bracket matching improvements in Java editor:
Original answer (December 2009)
Actually, you already have a variant of that with the outline view
If you click anywhere in a function (end of curly brace or anywhere else), the outline view will... outline the relevant function where you are in.
(source: eclipse.org)
Otherwise, you need a plugin like Eclipse Source Helper
(update site: http://www.hexapixel.com/update)