Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open from WebrootNew to Visual Studio Code? Get it now.
Open from Webroot

Open from Webroot

josephfinley

|
1 install
| (0) | Free
Run files in browser relative to webroot
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open from Webroot

Quickly open files in your browser relative to a configured webroot path.

Features

  • Right-click any file in the VS Code Explorer and select "Open from Webroot"
  • Automatically constructs the correct URL based on your webroot configuration
  • Perfect for ColdFusion, PHP, or any other server-side development

Configuration

This extension has two settings:

  • openFromWebroot.host: The host and port for your local server (default: 127.0.0.1:8500)
  • openFromWebroot.webroot: The absolute path to your webroot directory

Usage

  1. Configure your host and webroot in VS Code Settings
  2. Right-click on any file under your webroot in the Explorer
  3. Select "Open from Webroot"
  4. The file opens in your default browser with the correct URL

Requirements

  • Files must be located under the configured webroot path
  • Your local server must be running

Release Notes

0.0.1

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft