New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

code-inspector-plugin-x

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

code-inspector-plugin-x

Enhanced code inspector with copy-path feature (Cmd+Opt+Shift+Click). Fork of zh-lx/code-inspector.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

code-inspector-plugin-x

🚀 Enhanced code inspector with copy-path feature. Fork of zh-lx/code-inspector.

✨ New Features

Copy Source Path (NEW!)

  • Hotkey: Cmd+Option+Shift+Click (Mac) / Ctrl+Alt+Shift+Click (Windows)
  • Function: Copy source code path to clipboard
  • Format: file:line:column (works directly with VSCode's Go to File)

Open in IDE (Original)

  • Hotkey: Option+Shift+Click (Mac) / Alt+Shift+Click (Windows)
  • Function: Open source code in your IDE

📦 Installation

npm install --save-dev code-inspector-plugin-x

🔧 Usage

Vite

// vite.config.js
import { codeInspectorPlugin } from 'code-inspector-plugin-x'

export default {
  plugins: [
    codeInspectorPlugin({ bundler: 'vite' })
  ]
}

Webpack / Next.js

// webpack.config.js or next.config.js
const { codeInspectorPlugin } = require('code-inspector-plugin-x')

module.exports = {
  plugins: [
    codeInspectorPlugin({ bundler: 'webpack' })
  ]
}

// For Next.js:
module.exports = {
  webpack: (config, { dev }) => {
    if (dev) {
      config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }))
    }
    return config
  }
}

Rspack / Rsbuild

// rspack.config.js
const { codeInspectorPlugin } = require('code-inspector-plugin-x')

module.exports = {
  plugins: [
    codeInspectorPlugin({ bundler: 'rspack' })
  ]
}

🎯 How It Works

  • Start your dev server
  • Open browser console to see the hotkey instructions
  • Hold the hotkey and hover over elements to see the highlight
  • Click to:
    • Copy path (with Cmd+Opt+Shift)
    • Open in IDE (with Opt+Shift)

📋 Copied Path Format

The copied path uses the format: file:line:column

Example: src/components/Button.jsx:25:10

This format works directly with:

  • VSCode's "Go to File" (Cmd+P)
  • WebStorm's navigation
  • Most modern IDEs

🤝 Credits

Based on the excellent code-inspector by zh-lx.

Enhanced with copy-path feature by code-inspector-x.

📄 License

MIT

Keywords

code-inspector

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts