Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Laravel Pint FixerNew to Visual Studio Code? Get it now.
Laravel Pint Fixer

Laravel Pint Fixer

evgenius33

|
278 installs
| (0) | Free
Integrates Laravel Pint into your VSCode projects for automatic code formatting
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laravel Pint Fixer for VSCode

Laravel Pint Fixer is an unofficial extension for Visual Studio Code that adds the ability to automatically format PHP files using Laravel Pint.

Getting started

1. Install the extension

Go to the Visual Studio Code Marketplace and install the Laravel Pint Formatter extension.

2. Install Laravel Pint Globally

Make sure Laravel Pint is installed globally. Run the following command:

composer global require laravel/pint --dev

This will make Laravel Pint available on your system.

3. Configure the Extension

Add the following settings to your VSCode settings.json file:

"laravel-pint-fixer.pintBinPath": "path/to/pint", // set correct path to pint bin

"[php]": {
	"editor.formatOnSave": true,
	"editor.defaultFormatter": "evgenius33.laravel-pint-fixer"
},

Examples of correct paths by OS:

// macOS / Linux:
"laravel-pint-fixer.pintBinPath": "~/.composer/vendor/bin/pint"

// Windows
"laravel-pint-fixer.pintBinPath": "%USERPROFILE%\\AppData\\Roaming\\Composer\\vendor\\bin\\pint"

4. Specify a Default Configuration File (Optional)

By default, the extension will use the pint.json configuration file in the root of your workspace if it exists. If no configuration file is found, the default Laravel Pint configuration will be used To override this behavior, you can specify an absolute path to a default pint.json file:

"laravel-pint-fixer.pintConfigPath": "/absolute/path/to/pint.json"
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft