有没有办法在 Aptana IDE 的大纲视图中对方法/属性进行分组
我到处寻找这样的功能。我使用 Aptana IDE(基于 Eclipse)进行 php 开发,并且经常使用大纲功能。
我喜欢 xcode 的“pragma mark”功能,它可以让您在大纲视图中将源代码的各个部分分组在一起以供快速参考。 (此处描述:http://cocoasamurai.blogspot .com/2006/09/tip-pragma-mark-organizing-your-source.html)
Aptana/Eclipse 有类似的东西吗?
I've looked everywhere for a feature like this. I use the Aptana IDE (which is based on Eclipse) for my php development, and I use the outline feature a lot.
I enjoy xcode's 'pragma mark' feature, which lets you group sections of your source code together in the outline view for quick reference. (Described here: http://cocoasamurai.blogspot.com/2006/09/tip-pragma-mark-organizing-your-source.html)
Is there anything like this for Aptana/Eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现的最接近的是执行以下两件事之一:
创建一个虚拟常量,或创建一个虚拟函数。两者都会在大纲中创建条目。请参阅屏幕截图。就我个人而言,我认为我更喜欢常量,因为它在轮廓中的图标清楚地表明它实际上并不是一个函数。
The closest I have found is to do one of these two things:
Create a dummy constant, or create a dummy function. Both will create entries in the outline. See screenshot. Personally, I think I like the constant better, because its icon in the outline makes it clear it isn't really a function.