Page Development Efficiency Tool
Click on any DOM element on the page, and it will automatically open your IDE and position the cursor to the source code location corresponding to that DOM element.
Setup
- Install the plugin
bash
$ npm add @winner-fed/plugin-code-inspector -D
bash
$ yarn add @winner-fed/plugin-code-inspector -D
bash
$ pnpm add @winner-fed/plugin-code-inspector -D
bash
$ bun add @winner-fed/plugin-code-inspector -D
- Enable the plugin in the
.winrc
configuration file
ts
import { defineConfig } from 'win';
export default defineConfig({
plugins: [require.resolve('@winner-fed/plugin-code-inspector')],
codeInspector: {}
});
Configuration and Parameters
Reference: CodeInspector