This VS Code extension allows you to open any local file in your preferred web browser directly from the editor. You can set your desired browser executable path and open files seamlessly.
Features
Open any local file in a web browser.
Customizable browser executable path.
Multi-language support: English and Simplified Chinese.
Installation
Install the extension from the Visual Studio Code marketplace or clone this repository and debug it locally.
Open the Command Palette (Ctrl+Shift+P) and search for Extensions: Install Extensions.
Search for "Open Any File Type in Browser" and install it.
Usage
Open a file in the editor.
Use the command Open Any File Type in Browser: Open In Browser from the Command Palette (Ctrl+Shift+P).
If a browser executable path is not set, you'll be prompted to select one for the first time.
You can also change the browser path later using the command Open Any File Type in Browser: Choose Browser Path.
Configuration
You can configure the default browser path in the settings: