Laravel Debug Helper for VS Code
A simple VS Code extension that helps Laravel developers quickly insert dd($variable); in PHP files and @dd($variable); in Blade files.
🚀 Features
- Select any variable, press
Alt + D , and it will:
- Insert
dd($variable); on a new line in PHP files.
- Insert
@dd($variable); on a new line in Blade (.blade.php ) files.
- Maintains correct indentation for better readability.
🛠 Installation
From VS Code Marketplace
- Open VS Code.
- Go to Extensions (
Ctrl + Shift + X ).
- Search for
"Laravel Debug Helper" and click Install.
Manually (Using .VSIX File)
- Download the
.vsix file.
- Open VS Code, press
Ctrl + Shift + P → Search "Extensions: Install from VSIX".
- Select the
.vsix file and install.
🎯 Usage
- Open a PHP or Blade file.
- Select a variable (e.g.,
$variable ).
- Press
Alt + D .
- The extension will insert:
dd($variable); in PHP files.
@dd($variable); in Blade files.
Example
Before (Selecting $variable )
$variable = Modal::where('id', $id)->get();
| |