VSCode extension for Laravel Pint. For details follow the official documentation of laravel/pint
Just install to get started.
NO ADDITION CONFIGURATION REQUIRED
ext install msamgan.laravel-pint-vscode
or you can also install by searching pint
in VSCode extensions and selecting Laravel Pint Formatter
from Mohammed Samgan khan
Open command pallet by Ctrl+Shift+P on Windows (Cmd+Shift+P on Mac OS)
and type laravel pint
to access all the available commands.
Format current file option is also available in right-click menu, moreover you can also use Ctrl+Shift+L on Windows (Cmd+Shift+L on Mac OS)
for formatting the current file.
Below are the all available commands.
This will create a default pint.json configuration in the root of your project. Although, the formatter will work fine without it, it gives you more control over the formatting behavior.
This will format the entire project with the set configurations you provided.
This will format the current open file with the set configurations you provided.
PS: A system pop up will ask you to install pint if it's not installed.
This setting is entirely optional
if you would like to enable format on save. Add the following line to the settings.json
"editor.laravel.pint.enabled": true
Pint will format the current file each time it is saved.
Enjoy!