Pint This - Installation & Usage GuideA VS Code extension that adds a convenient right-click option to run Laravel Pint on your PHP files with just two simple steps. Prerequisites
Step 1: Install Laravel Pint GloballyLaravel Pint is a PHP code style fixer that needs to be available globally on your system for this extension to work. Option A: Global Installation (Recommended)Install Laravel Pint globally using Composer:
Option B: Project-based InstallationIf you prefer project-based installation:
Note: With project-based installation, the extension will only work within projects that have Pint installed. Verify InstallationTest that Pint is available from the command line:
If you get a "command not found" error, ensure Composer's global bin directory is in your PATH:
Step 2: Install the VS Code Extension
Step 3: Using the ExtensionQuick Start
You'll see a notification when Pint finishes processing the file. Configuration (Optional)Laravel Pint works perfectly with default settings, but you can customize it by creating a
Troubleshooting"pint command not found"Solution: Ensure Laravel Pint is installed globally and in your PATH:
If still not working, add Composer's bin directory to your PATH:
Extension Not AppearingSolution:
About Laravel PintLaravel Pint is a PHP code style fixer that ensures your code follows Laravel's coding standards. It automatically fixes indentation, spacing, and other style issues to keep your code clean and consistent. |