Laravel Wow - VSCode Extension
Laravel Wow is a Visual Studio Code extension that simplifies debugging in Laravel applications.
Features
1. Wrap variables in dd()
Wraps the selected variable in a dd() call on the next line.
- Command:
extension.wrapInDD
- Keybinding:
- Windows/Linux:
Ctrl+Alt+D
- Mac:
Cmd+Alt+D
Before:
$variable;
After:
$variable;
dd($variable); // dd added on the next line
2. Insert dd('here');
Inserts a dd('here'); statement on the next line for quick checkpoint debugging.
- Command:
Insert dd('here')
- Keybinding:
- Windows/Linux:
Ctrl+Alt+H
- Mac:
Cmd+Alt+H
Before:
$variable
After:
$variable
dd('here'); // dd('here') added on the next line
3. Insert Log::info()
Wraps the selected variable in a Log::info() call on the next line.
- Command:
extension.wrapInLog
- Keybinding:
- Windows/Linux:
Ctrl+Alt+L
- Mac:
Cmd+Alt+L
Before:
$variable
After:
$variable
Log::info('Logged Here:', $variable); // Log::info() added on the next line
4. Insert JSON response
Wraps the selected variable in a return response()->json() block on the next line.
- Command:
extension.wrapInJsonResponse
- Keybinding:
- Windows/Linux:
Ctrl+Alt+J
- Mac:
Cmd+Alt+J
Before:
$variable
After:
$variable
return response()->json(['message' => 'success', 'data' => $variable]);
5. Insert dump()
Wraps the selected variable in a dump() call on the next line.
- Command:
extension.wrapInDump
- Keybinding:
- Windows/Linux:
Ctrl+Alt+X
- Mac:
Cmd+Alt+X
Before:
$variable
After:
$variable
dump($variable); // dump() added on the next line
6. Insert PHP snippets
Adds helper snippets to speed up common patterns. Type a snippet trigger and press Tab to expand.
Example โ trigger: pubf
After:
public function functionName()
{
// Your code here
}
To open the snippet picker window, press Ctrl+Alt+I.
which will download you all our available shippets.
Note: Look into your snippets\php.json file to view all the snippets available.
To open it directly from VSCode:
- Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type Snippets: Configure User Snippets
- Select php.json
7. Organize PHP class
Reorganizes PHP class methods using your saved rules. On first run, it asks for your preferences and saves them for future use.
- Command:
extension.organizePHPClass
- Keybinding:
- Windows/Linux:
Ctrl+Alt+F, F
- Mac:
Cmd+Alt+F, F
NOTE Updates the saved organizer rules at any time.
- Command:
extension.configurePHPOrganizer
- Keybinding:
- Windows/Linux:
Ctrl+Alt+F, S
- Mac:
Cmd+Alt+F, S
Behavior:
- Groups methods by visibility (public, protected, private)
- Optionally sorts methods alphabetically within each group
- Optionally places all static methods at the top
- Keeps trait uses, constants, and properties above methods
- Saves your preferences and reuses them on subsequent runs
8. Create PHP file
Opens a generator picker to scaffold Laravel PHP files.
- Command:
laravelBuilder.openGenerator
- Keybinding:
- Windows/Linux:
Ctrl+Shift+,
- Mac:
Cmd+Shift+,
Supported file types:
controllers, services, repositories, jobs, actions, requests, resources, models, middleware, events, listeners, notifications, mail, policies, commands, providers, observers, rules, casts, enums, traits, interfaces, seeders, factories, migrations, and config files
Notes
- Your system shortcuts may conflict with the default keybindings. You can reassign any keybinding in VSCode settings.
- For suggestions or bug reports, please leave us a message.
Developers