在netbeans中注释代码?

发布于 2024-08-28 03:17:48 字数 241 浏览 3 评论 0原文

不久前,我可以使用 netbeans 注释 php 中的任何代码,如下所示:

/*
 *
 *
 */

我刚刚输入 /* ENTER,netbeans 给了我上面的那几行。然后,当我输入@时,它给了我所有可用标签(作者、参数等)的完整列表。

我重新安装了我的 mac,从那以后它就不再工作了。

有人知道为什么以及如何激活它吗?我只为 php 安装了 netbeans。

a while ago i could comment any code in php with netbeans like this:

/*
 *
 *
 */

I just typed /* ENTER and netbeans gave me that lines above. then when i typed @ it gave me a full list of all available tags (author, param and so on).

i reinstalled my mac and since then it hasnt worked.

someone knows why and how i can activate it? i installed the netbeans for php only.

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

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

发布评论

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

评论(2

秋风の叶未落 2024-09-04 03:17:48

您是否从旧的用户配置文件导入?这事发生在我身上一次。我重置了首选项并且它起作用了。希望这有帮助。

编辑:OP报告说你必须按/** ENTER而不是/* ENTER才能使评论生效。

Did you import from an old user profile by any chance? This happened to me once. I reset the preferences and it worked. Hope this helps.

Edit: The OP reported that you have to press /** ENTER rather than /* ENTER to get the comments working.

楠木可依 2024-09-04 03:17:48

我会建议以下其中一项:

1) Completely uninstall netbeans and install again

2) Check Tools->Options->Editor->Code Templates
   You may also want to check the settings in 
   Check Tools->Options->Editor->Code Completion

I would suggest 1 of the following:

1) Completely uninstall netbeans and install again

or

2) Check Tools->Options->Editor->Code Templates
   You may also want to check the settings in 
   Check Tools->Options->Editor->Code Completion
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文