Skip to main content

VSCode Embedded Browser

Free2019-12-28#Toy#run browser in vscode#vscoe embedded browser#VSCode内置浏览器#VSCode内嵌浏览器#VSCode打开网页

EmbeddedBrowser, the first plugin that can truly browse web pages in VS Code

1. What is EmbeddedBrowser?

An embedded browser within VS Code.

Until December 29, 2019, finally there was the first plugin that can truly browse web pages in VS Code, it's called EmbeddedBrowser

P.S. Claiming to be the first is not exaggerated at all, the existing Browser Preview for VS Code is relatively close, but its solution itself has many limitations, cannot meet basic web browsing needs, see details in [3 Solutions to Break iframe Security Restrictions](/articles/打破 iframe 安全限制的 3 种方案/)

2. Why Need EmbeddedBrowser?

Open a browser directly in your VS Code.

Then, why must open a browser in IDE?

Because it can facilitate many things, for example, search on Google while coding:

coding-with-searching

For example, check API documentation while coding:

coding-with-API-docs

Another example, preview local effects while coding:

coding-with-preview

Complete Feature List

  • Open any HTTP/HTTPS links in your VS Code.

  • Jump, forward, backward, refresh all supported.

  • Support history records, URL auto-completion.

  • Automatically restore open browser panels when VS Code restarts.

3. Installation and Usage

Already listed on VS Code plugin marketplace, install and use immediately, or search for EmbeddedBrowser plugin in VS Code to install

Usage is extremely simple, just input command Open Browser

P.S. If encountering any problems, or have feature suggestions, can all feedback through issue

4. Implementation Principle

In short, bypass security restrictions through local proxy service forwarding, then load pages through iframe

If interested in Webview capabilities provided by VS Code, or specific implementation of embedded browser, can refer to:

  • [Webview_VS Code Plugin Development Notes 5](/articles/webview-vscode 插件开发笔记 5/)

  • [3 Solutions to Break iframe Security Restrictions](/articles/打破 iframe 安全限制的 3 种方案/)

Specific implementation details, see Github:

Welcome to participate together;)

Comments

No comments yet. Be the first to share your thoughts.

Leave a comment