vite-plugin-openinvscode

1.0.3 • Public • Published

vite-plugin-openinvscode

URL input path and file name directly open the corresponding file in vscode

Note: You need to have vscode installed and add it to your path.

Add vscode in your PATH

Usage

// vite.config.js
import openInVscode from 'vite-plugin-openinvscode'

export default {
  plugins: [
    openInVscode()
  ]
}

After run npm run dev, type URL path like http://localhost:3000/__open-in-editor?file=xxxxx,

Best partner

Please use this plugin with my modified react devtools or other tools.

The principle of my react devtools is to send an Ajax request to the middleware, and then open the corresponding file, you can use similar tools or implement your own awesome tools🚀🚀🚀

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-openinvscode

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • oven_si