vscode laravel pint formatter extensionvscode extension for laravel pint. For details follow the official documentation of laravel/pint Just install and get started. NO ADDITION CONFIGURATION REQUIRED Installation
or you can also install by searching "pint" in vscode extensions and selecting "Laravel Pint Formatter" from "Mohammed Samgan khan" UsageOpen command pallet by Format current file option is also available in right-click menu, moreover you can also use CommandsBelow are the all available commands. Laravel Pint: Publish default pint.jsonThis 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 projectThis will format the entire project with the set configurations you provided. Laravel Pint: Format current fileThis 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. Enjoy! |