vscode laravel pint formatter extension
vscode extension for laravel pint. For details follow the official documentation of laravel/pint
Just install and get started.
NO ADDITION CONFIGURATION REQUIRED
or you can also install by searching "pint" in vscode extensions and selecting "Laravel Pint Formatter" from "Mohammed Samgan khan"
Open command pallet by
Format current file option is also available in right-click menu, moreover you can also use
Below are the all available commands.
Laravel Pint: Publish default pint.json
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.
Laravel Pint: Format project
This will format the entire project with the set configurations you provided.
Laravel Pint: Format current file
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.
Setting (Format on Save)
This setting is entirely optional
if you would like to unable format on save. Add the following line to the
This will unable pint format on save for the current file.