在 netbeans 7.0.1 PHP 中扩展模板不起作用

发布于 2024-12-13 18:12:20 字数 408 浏览 2 评论 0原文

当我输入代码模板的缩写并按展开键时,没有任何反应。当我等待代码完成时,我也没有得到任何建议。

我查看了“工具”>“选项>编辑>代码模板>语言:PHP,并列出了很多模板。我的扩展模板键设置为Tab,但我也尝试了其他键,例如shift + space

我没有更改模板,它们仍然是开箱即用的。我读到了vdoc模板,因此我认识到扩展模板对我不起作用。

代码完成中,我为所有语言激活了除区分大小写的代码完成之外的所有选项。对于php语言我激活:所有可能的情况,也静态,也非静态,所有变量和非限定。

我在 Win 7 prof x64 上使用 Netbeans 7.0.1。

为什么它对我不起作用?

When I enter an abbreviation of a code template and press the expand key nothing happens. I also get no suggestions when i wait for the code completion.

I had a look at Tools > Options > Editor > Code Templates > Language: PHP and there are lots of templates listed. My Expand template key is set to Tab, but I also tried other keys like shift + space.

I did not change the templates, they are still out of the box. I read about the vdoc template and because of this I recognized, that expanding templates doesn't work for me.

In code completion I activated all options except case sensitive code completion for all languages. For the php language I activated: all possible situations, also static, also non-static, all variables and unqualified.

I'm using Netbeans 7.0.1 on Win 7 prof x64.

Why does it not work for me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

说不完的你爱 2024-12-20 18:12:20

您的补全必须在 标记中完成。

Your completion must be done in the <?php tag.

稀香 2024-12-20 18:12:20

这是一个错误。从 7.1 开始已修复。

This was a bug. It has been fixed since 7.1.

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