最好的提示和建议是什么?使用 Eclipse PDT 的技巧
有一对类似 线程在这里,但大多数其他技巧不适用于 PDT,因此让我们专门针对 适用于 PHP 的 Eclipse PDT。
我将开始(感谢那些从其他线程工作的人):
- CTRL-SPACE = 代码完成
- CMD-/ = 自动注释
- CMD-SHIFT-L = 键辅助
- 如果自动完成功能无法正常工作且文件名不正确t 扩展,右 单击项目文件夹并转到 php 构建路径并添加文件夹
- CMD-SHIFT-t = 显示类名列表
- CMD-SHIFT-r = 显示文件列表
- 我会说添加 生成 Getters 和 Setters 插件,但我刚刚这样做了,但它对我不起作用。
- 不喜欢 doc 块使用的 @author 变量? 更改它。请注意,评论中包括在 Mac 上修复此问题的棘手方法。
There are a couple of similar threads here, but most of the other tips don't work on PDT so let's make this one specific to Eclipse PDT for PHP.
I'll start (w/ credit to those that work from other the other threads):
- CTRL-SPACE = code completion
- CMD-/ = auto comment
- CMD-SHIFT-L = key assist
- If autocomplete isn't working right and filenames aren't expanding, right
click on project folder and go to php build path and add folder - CMD-SHIFT-t = shows list of classnames
- CMD-SHIFT-r = shows list of files
- I would say add the Generate Getters and Setters plugin except I just did and it doesn't work for me.
- Don't like the @author variable used by the doc block? Change it. Note the comments include the tricky way of fixing this on the Mac.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说非常有效的方法是在 Eclipse 首选项中自定义语法的颜色。它帮助我区分语法元素。标准着色通常将相同的颜色分配给多个元素。我在这篇文章中添加了我的着色图片:
Eclipse PHP 语法着色
Something that works for me very well is to customize the coloring of the syntax in the eclipse preferences. It helps me to differentiate the syntax-elements. The standard coloring often allocates the same color to several elements. I ve added a picture of my coloring to this post:
Eclipse PHP Syntax Coloring