/vscode-laravel-extra-intellisense

This extension adds extra autocompletion for laravel projects to VSCode.

Primary LanguageTypeScriptMIT LicenseMIT

Laravel Extra Intellisense

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

Autocomplete

Route names and route parameters

Routes

Views and variables

Views

Configs

Configs

Translations and translation parameters

Translations

Laravel mix function

Mix

Validation rules

Validation rules

View sections and stacks

View sections

Env

env

Route Middlewares

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.

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"

Release Notes

0.4.0

  • Add Docker support.

0.3.3

  • Performance improvement.
  • Bug fixes (#25, #26)

0.3.2

  • Add configuration for views separator (#22).
  • can, cannot autocomplete.

0.3.1

  • Fix #18.

0.3.0

  • env autocomplete added.
  • Route middleware autocomplete added.
  • Nested stack and section support added.
  • Function parser improvement.

0.2.6

  • Blade stack autocomplete added.
  • Duplicate section autocomplete items fixed.
  • PHP commands converted to async functions to prevent unresponsive extension host error.

0.2.4

  • Blade section autocomplete added.

0.2.3

  • View parameters autocomplete.
  • Route autocomplete bug in linux fixed.

0.2.2

  • Auto-Retry removed from all providers. causes some performance issues.
  • Disable logging added.

0.2.1

  • 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.

0.2.0

Validation rules autocomplete added. works with Validator class, validate functions and inside request classes.

0.1.5

Route action autocomplete added. Route::get, Route::post,... autocompletes controller actions inside app\Http\Controllers.

0.1.2 - 0.1.4

Performance improvments.

0.1.1

Add mix autocomplete.

0.1.0

Fix problems with linux. Add translation autocomplete. Improved providers.

0.0.6

Config autocomplete added.

0.0.5

Route bug fix.

0.0.4

View names with namespaces ready to use.

0.0.3

View functions autocompelete added.

0.0.2

Blade bug fix.

0.0.1

Add route autocomplete.

Recommended extensions

Credits