当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

vscode-laravel-extra-intellisense

授权协议 MIT License
开发语言 PHP
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 商飞龙
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Laravel Extra Intellisense

This extension provides Laravel routes, views and ... autocomplete for VSCode.

Autocomplete

Route names and route parameters

Views and variables

Configs

Translations and translation parameters

Laravel mix function

Validation rules

View sections and stacks

Env

Route Middlewares

Configuration

LaravelExtraIntellisense.customValidationRules:

Your custom validation rules snippets.

Example:

"LaravelExtraIntellisense.customValidationRules": {
    "mobile": "mobile",
    "distance_gt": "distance_gt:${0:1km}"
}

LaravelExtraIntellisense.phpCommand

Command to run PHP codes to interact with your Laravel application.

Default:php -r \"{code}\"

Note: {code} is PHP code generated by extension and should be wrapped with "".

LaravelExtraIntellisense.basePath

Base path of your Laravel application. useful if your Laravel project is not at the root of you project directory.

LaravelExtraIntellisense.basePathForCode

Same as LaravelExtraIntellisense.basePath but this one using for require_once in generated PHP codes.

LaravelExtraIntellisense.viewDirectorySeparator

You also can use / instead of . as directory separator for view autocomplete.

LaravelExtraIntellisense.modelsPaths

Array of paths including your models. (Default: ["app", "app/Models"])

LaravelExtraIntellisense.modelVariables

Variable names that should provide autocomplete with specific model class. Finding variable type (especially in views) is not easy so you need to manually define variable types.

Example: The Following setting provides auto completion each time you type discountedProduct-> with App\Models\Product model attributes.

"LaravelExtraIntellisense.modelVariables": {
    "discountedProduct": "App\\Models\\Product"
}

All camelCase and snake_case of model names provide autocomplete by default.For example productDiscount and product_discount provides member autocomplete from App\Models\ProductDiscount model.

LaravelExtraIntellisense.modelAttributeCase

Change model attribute names case to snake_case, camelCase or default. (Default = default)

LaravelExtraIntellisense.modelAccessorCase

Change model accessor names case to snake_case, camelCase or default. (Default = snake)

LaravelExtraIntellisense.disableBlade

If you want to disable blade directives autocomplete set this to true.

Sample config to use docker

This is a simple configuration to use via Laradock.It is possible to use this extension with other docker images or even other virtual machines.

"LaravelExtraIntellisense.phpCommand": "docker exec -w /var/www/your-project -u laradock laradock_workspace_1 php -r \"{code}\"",
"LaravelExtraIntellisense.basePathForCode": "/var/www/your-project"

Security Note

This extension runs your Laravel application automatically and periodically to get the information needed to provide autocomplete.

So if you have any unknown errors in your log make sure the extension not causing it.

Also if you writing any sensitive code in your service providers, disable the extension temporarily to prevent unwanted application executing.

Release Notes

0.6.x

  • Add blade directives autocomplete (#45).
  • Add change case option for model attributes (#46).

0.5.x

  • Add asset support.
  • Add Model attributes autocomplete (Beta).

0.4.x

  • Add Docker support.

0.3.x

  • env autocomplete added.
  • Route middleware autocomplete added.
  • Nested stack and section support added.
  • Function parser improvement.
  • Performance improvement.
  • Bug fixes (#25, #26)
  • Add configuration for views separator (#22).
  • can, cannot autocomplete.
  • Fix #18.

0.2.x

  • Validation rules autocomplete added.
  • works with Validator class, validate functions and inside request classes.
  • markdown function added to view functions for autocomplete.
  • Using file watcher instead of save event. Better change detect for view autocomplete.
  • json translation autocomplete added.
  • Auto-Retry removed from all providers. causes some performance issues.
  • Disable logging added.
  • View parameters autocomplete.
  • Route autocomplete bug in linux fixed.
  • Blade section autocomplete added.
  • Blade stack autocomplete added.
  • Duplicate section autocomplete items fixed.
  • PHP commands converted to async functions to prevent unresponsive extension host error.

0.1.x

  • Fix problems with linux.
  • Add translation autocomplete.
  • Improved providers.
  • Add mix autocomplete.
  • Performance improvments.
  • Route action autocomplete added. Route::get, *Route::post, ... autocompletes controller actions inside app\Http\Controllers.

0.0.x

  • Config autocomplete added.
  • Route bug fix.
  • View names with namespaces ready to use.
  • View functions autocompelete added.
  • Blade bug fix.
  • Add route autocomplete.

Donation

Recommended extensions

Credits

  • 概述 在vscode中打开platformio时,PIO Home一直处于加载状态 主页上一直显示loading 在左下方的状态栏中提示PlatformIO IntelliSense Index Rebuild 任务一直在运行 环境: ubuntu16.04 vscode 并无自动更新过 PlatformIO IDE插件版本1.9.0 初步怀疑是PlatformIO IDE插件自动升级造成的,和p

  • 写在前面 工作中需要为vscode编写几个extension,查了不少资料,包括官网的API和示例,但是感觉不是特别适合入门者,所以打算写一个关于vscode extensions系列的文章。 在您读这篇文章的时候,我默认您已经安装了vscode和nodejs的开发环境。如果还没有安装nodejs,我想这篇文章Node.js安装配置-菜鸟网可能对您有所帮助。 vscode有入门的例子可供参看,理解

  • 一.开篇说明 本篇文章是vscode + ccls环境配置_denglin12315的博客-CSDN博客_ccls vscode的姊妹篇,ccls的配置相对来说更复杂,并且不支持gdb调试,所以这里再写一篇通过配置微软官方的C++ IntelliSense插件实现compile_commands.json解析,从而加快代码解析速度 二.操作方法 1.代码根目录下创建下面的文件 .vscode/c_

  • 在linux下使用vscode开发C/C++项目时,项目引用了Eigen库。最开始在x86和armhf平台下,都没有问题。但后来切换到aarch64平台(也就是64位arm),还是使用x86平台对aarch64项目进行交叉编译。但这时候Eigen::Vector3d竟然识别不了,使用"Go to Definition"也跳不过去,提示"no definition found for Vector3

 相关资料
  • extra

  • Extra wrappers or mixins contributed by the community. These wrappers can be mixed in into request objects to add extra functionality. Example: from werkzeug.wrappers import Request as RequestBase fro

  • MyBatis JPA Extra 对 MyBatis 进行了扩展,目的在于简化开发的难度,采用了JPA 2.1的注释,无需配置映射的XML文件,使用插件的方式动态生成SQL语句,实现对单表的操作的简化;另外使用Interceptor拦截需要分页的SELECT查询语句,根据不同的数据库完成分页查询。

  • 描述 (Description) java.util.zip.ZipEntry.setExtra(byte[] extra)方法为条目设置可选的额外字段数据。 声明 (Declaration) 以下是java.util.zip.ZipEntry.setExtra(byte[] extra)方法的声明。 public void setExtra(byte[] extra) 参数 (Paramete

  • extra-keyboards-for-chrome-os 是 Chrome OS 系统上输入输出扩展插件。存在的限制是——这个 Chrome 扩展不允许登录/锁定屏幕,不允许使用密码字段。 使用方法: ctrl + space,可以切换最近使用的输入法 alt + shift ,启用键盘布局/输入方法 type away

  • 使用Exra module需要进行下面的配置,就可以在命令行或者是playbook中使用了。配置后extra module使用方法和core module的使用方法是一样的。 [注]Ansible 2.3以后,Extra module的使用就和core module一样了,无需任何额外的配置,直接在playbook和命令行中使用。其实Ansible团队会一直致力于把成熟的长期使用没有问题的Modu