在 Netbeans 中启用 Laravel 4 的自动完成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16960844/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 07:54:26  来源:igfitidea点击:

Enabale auto-complete for Laravel 4 in Netbeans

netbeanslaravellaravel-4

提问by Sophy

I would like to add auto-complete with documentation for Laravel 4 in Netbeans. I try to search and found this code(https://github.com/ethaizone/laravel-netbeans-autocompletion). Unfortunately, it doesn't work with Laravel 4.

我想在 Netbeans 中为 Laravel 4 添加自动完成文档。我尝试搜索并找到此代码(https://github.com/ethaizone/laravel-netbeans-autocompletion)。不幸的是,它不适用于 Laravel 4。

Anyone have any idea or solution?

任何人有任何想法或解决方案?

回答by kr4Y

Try this https://github.com/barryvdh/laravel-ide-helper. It use artisan command to generate ide helper file

试试这个https://github.com/barryvdh/laravel-ide-helper。它使用 artisan 命令生成 ide helper 文件

回答by Tho

Just download this file _ide_helper.phpand put it in the root directory of your project

只需下载这个文件_ide_helper.php并将其放在您项目的根目录中

回答by newday

I created a folder inside programfiles/netbeans/php then I saved the file which u can grab from following url. I updated the PHP global include path to above folder from Netbeans. Next time when you create a Laravel you don't need to set the include file path. Netbeans will support Laravel code completion.

我在 programfiles/netbeans/php 中创建了一个文件夹,然后我保存了您可以从以下 url 获取的文件。我从 Netbeans 更新了以上文件夹的 PHP 全局包含路径。下次创建 Laravel 时不需要设置包含文件路径。Netbeans 将支持 Laravel 代码完成。

download the file from this page

从此页面下载文件