最好的提示和建议是什么?使用 Eclipse PDT 的技巧

发布于 2024-09-27 20:40:40 字数 840 浏览 0 评论 0原文

一对类似 线程在这里,但大多数其他技巧不适用于 PDT,因此让我们专门针对 适用于 PHP 的 Eclipse PDT

我将开始(感谢那些从其他线程工作的人):

  1. CTRL-SPACE = 代码完成
  2. CMD-/ = 自动注释
  3. CMD-SHIFT-L = 键辅助
  4. 如果自动完成功能无法正常工作且文件名不正确t 扩展,右 单击项目文件夹并转到 php 构建路径并添加文件夹
  5. CMD-SHIFT-t = 显示类名列表
  6. CMD-SHIFT-r = 显示文件列表
  7. 我会说添加 生成 Getters 和 Setters 插件,但我刚刚这样做了,但它对我不起作用。
  8. 不喜欢 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):

  1. CTRL-SPACE = code completion
  2. CMD-/ = auto comment
  3. CMD-SHIFT-L = key assist
  4. 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
  5. CMD-SHIFT-t = shows list of classnames
  6. CMD-SHIFT-r = shows list of files
  7. I would say add the Generate Getters and Setters plugin except I just did and it doesn't work for me.
  8. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十二 2024-10-04 20:40:40

对我来说非常有效的方法是在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文