Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Pest Autocomplete SupportNew to Visual Studio Code? Get it now.
Pest Autocomplete Support

Pest Autocomplete Support

eduwass

|
192 installs
| (0) | Free
Automatically configures Intelephense to include vendor directory for Pest autocomplete support.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Pest Autocomplete Support

demo.gif

A VS Code extension that automatically configures Intelephense to include your Composer vendor directory, providing accurate autocomplete support for Pest testing framework.

How It Works

The extension automatically:

  1. Searches for composer.json files in your workspace (recursively up to 5 levels deep)
  2. Detects corresponding vendor directories with Pest installed
  3. Prompts you to configure Intelephense include paths for better autocomplete
  4. Handles multiple Composer projects by letting you choose which vendor directory to configure

Supported Project Structures

  • Standard Laravel/PHP projects: composer.json in project root
  • WordPress themes: wp-content/themes/theme-name/composer.json
  • Laravel packages: packages/package-name/composer.json
  • Monorepos: Multiple composer.json files in subdirectories
  • Nested projects: Any Composer project up to 5 levels deep

User Experience

  • Single Composer project: Simple "Configure/Not Now/Don't Ask Again" prompt
  • Multiple projects: QuickPick interface to select which vendor directory to configure
  • Persistent preferences: Remembers your "Don't Ask Again" choice
  • Non-intrusive: Only prompts when vendor directory is found and not already configured
  • Smart prioritization: Root-level vendor directories are suggested first
  • Manual configuration: Command palette command available for immediate setup after installation

Requirements

  • PHP Intelephense must be installed
  • Composer project with Pest installed in vendor directory

Installation

Marketplace
  1. Open the command palette (Ctrl+Shift+P)
  2. Select Extensions: Install Extension
  3. Search for Pest Autocomplete Support
  4. Select the extension and click install
Manual (VSIX)
  1. Download the VSIX file from repo.
  2. Open the command palette (Ctrl+Shift+P)
  3. Select Extensions: Install from VSIX
  4. Select the .vsix file and click install

Manual Configuration

If the extension doesn't automatically detect your Composer project, you can manually trigger the configuration:

  1. Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type Pest: Configure Pest Autocomplete Support
  3. Select the command to run the configuration process

Debugging

If the extension isn't working as expected, check the Output panel:

  1. Go to View → Output
  2. Select "Pest Autocomplete Support" from the dropdown
  3. Look for debug messages about Composer file detection and configuration

What It Does

  • Adds your Composer vendor directory to Intelephense include paths
  • Enables accurate autocomplete for Pest functions (it(), test(), beforeEach(), etc.)
  • Provides proper type hints and method chaining support
  • Uses actual Pest classes from vendor directory (no stub files needed)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft