Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>React-CodeBridgeNew to Visual Studio Code? Get it now.
React-CodeBridge

React-CodeBridge

Made by Rajitha

|
1,560 installs
| (3) | Free
Click any UI element in your browser to instantly jump to its React source code in VS Code. Works with React-DomPicker Chrome extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React-CodeBridge - VS Code Extension

Visual Studio Marketplace Version License

Click any UI element in your browser → Instantly jump to its React source code in VS Code.

Stop searching for component files manually. Click once in your browser, and VS Code opens the exact component file with the element highlighted.


Quick Start

1. Install This Extension

From VS Code Marketplace:

  1. Open VS Code Extensions (Cmd/Ctrl + Shift + X)
  2. Search for "React-CodeBridge"
  3. Click Install

Or install manually:

code --install-extension dist/react-codebridge-1.2.3.vsix

2. Install Browser Extension

You also need the browser companion:

Chrome/Edge: Install from Chrome Web Store

Firefox: Install from Firefox Add-ons

3. Start Using It

  1. Open your React project in VS Code
  2. Run your dev server (npm run dev)
  3. Open your app in browser
  4. Click the React-DomPicker extension icon
  5. Click any element → VS Code opens the file instantly

What's New in v1.2.3

  • Next.js 16 App Router and React Server Components support
  • Walkthrough on first install with setup instructions
  • Optional 100% accuracy mode via code-inspector-plugin
  • Press Esc in the browser to deactivate the picker when it's on
  • Fixed: Server Component clicks now open the correct file on Turbopack
  • Fixed: clicks on elements inside .map() loops resolve correctly
  • Fixed: text containing &, <, or > no longer opens the wrong line
  • Fixed: <Link> clicks inside Server Components now resolve correctly

Settings

Most users won't need to change anything, but these settings are available:

Access: Preferences → Settings → Search "React-CodeBridge"

Setting Default When to Change
port 51234 If port is already in use
showNotifications false If you want popup confirmations
maxFilesToScan 500 For very large projects (1000+ components)
maxScanLines 500 For files with very long components

Troubleshooting

Extension Not Working?

Quick checks:

  1. Browser extension is installed and active (colored icon)
  2. Your app is on localhost or 127.0.0.1 (not production domain)
  3. Running in development mode (not production build)
  4. VS Code status bar shows "React Bridge: ON"

Wrong Files Opening (React 19 / Next.js)?

React 19 removed some internal metadata we rely on, so the default accuracy on React 19 / Next.js projects is 70 to 90 percent.

For 100% accuracy on every click, install code-inspector-plugin in your project. The first-install walkthrough has the setup snippets for Next.js and Vite.

To improve accuracy without the plugin:

  • Increase maxFilesToScan in settings (try 1000)
  • Add unique id or className props to components
  • Check Output channel for match info: View → Output → React-CodeBridge

Connection Issues?

HUD shows "Not Connected":

  • Check VS Code Output panel: View → Output → Select "React-CodeBridge"
  • Verify port 51234 isn't blocked by firewall
  • Try reloading VS Code: Cmd/Ctrl + R

Supported Projects

Frameworks:

  • React 16.8+ (all versions including React 19)
  • Next.js (all versions)
  • Vite, Create React App, Remix, Gatsby

Languages:

  • TypeScript (.tsx)
  • JavaScript (.jsx)

Styling:

  • Works with Tailwind, ShadCN, styled-components, CSS Modules, etc.

Privacy

  • 100% local - Everything runs on your machine
  • No tracking - We don't collect any data
  • No internet required - Works completely offline
  • Localhost only - Won't activate on production sites

Your code never leaves your computer.


Need Help?

  • View detailed logs: View → Output → React-CodeBridge
  • Report issues: GitHub Issues
  • Leave a review: VS Code Marketplace

Click any UI element in your browser to jump to its source code in VS Code.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft