Laravel 的 Sublime 文本自动补全
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34357272/
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
Sublime text autocompletion for Laravel
提问by adarshaU
Are there any plugins available to get Laravel auto completion and Laravel Blade template beautification in Sublime Text 3? I have googled it, didn't find the right one for Laravel auto complete and not even one plugin that beautify the Laravel blade template.
是否有任何插件可用于在 Sublime Text 3 中获得 Laravel 自动完成和 Laravel Blade 模板美化?我在谷歌上搜索过,没有找到适合 Laravel 自动完成功能的插件,甚至没有一个可以美化 Laravel 刀片模板的插件。
回答by Limon Monte
There is dev4dev/blade-snippets. You can install it via Package Manager:
有dev4dev/blade-snippets。您可以通过包管理器安装它:
After installing you will be able to autocomplete Blade snippets by pressing Tab.
安装后,您将能够通过按 自动完成 Blade 片段Tab。
Some examples:
一些例子:
List of all snippets you can find in the project's repo: https://github.com/dev4dev/blade-snippets/tree/master/snippets
您可以在项目的 repo 中找到的所有片段的列表:https: //github.com/dev4dev/blade-snippets/tree/master/snippets
回答by Sergio Guillen Mantilla
First install Sublime Code Intelplugin and then install Laravel Ide Helper.
首先安装Sublime Code Intel插件,然后安装Laravel Ide Helper。
By default Sublime Code Intel will let you autocomplete the code you write in your project e.g. extra classes, laravel's namespaces, etc but by default it will not autocomplete laravel's facades that's why Laravel Ide Helper comes to the rescure.
默认情况下,英特尔会允许你自动完成你在项目中编写的代码,例如额外的类、laravel 的命名空间等,但默认情况下它不会自动完成 laravel 的外观,这就是 Laravel Ide Helper 来救援的原因。