English | 日本語
Native support for Formatting API. Automatically runs formatter on save.
- Open Command Palette (
Ctrl+Shift+P/Shift+⌘+P) - Choose
Preferences: Open Workspace Settings (JSON) - Add the following configuration
You can automatically format document on save. If you need to format document manually, press Shift+Ctrl+F/Shift+⌘+F.
| Setting | Default | Description |
|---|---|---|
easy-coding-standard.enabled |
true |
Enable/disable Easy Coding Standard extension |
easy-coding-standard.executablePath |
vendor/bin/ecs |
Path to the ECS executable |
easy-coding-standard.configPath |
ecs.php |
Path to the ECS configuration file (ecs.php). If empty, will search for ecs.php in the workspace. |
easy-coding-standard.memoryLimit |
"" |
Memory limit for the ECS process |
easy-coding-standard.xdebug |
false |
Enable Xdebug for ECS |
easy-coding-standard.timeout |
30000 |
Timeout for ECS command execution in milliseconds |
easy-coding-standard.extraArgs |
[] |
Extra arguments for ECS |
Contributions are welcome! Please feel free to submit issues and pull requests.
{ "[php]": { "editor.formatOnSave": true, "editor.defaultFormatter": "picopico.easy-coding-standard" } }