Skip to content

Page Development Efficiency Tool

NPM Version

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

  1. 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
  1. 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

Released under the MIT License.