Overview Version History Q & A Rating & Review
domlink
Click a DOM element in the browser to jump to that spot in your code, or click a line in your editor to see where it lives in the DOM. A simple way to see what you’re working on.
Companion for domlink .
Requirements
npm i -D @domlink/domlink
npx @domlink/domlink init
Then start your dev server (npm run dev).
Usage
Where
Action
Browser
Hold Alt / Option, hover an element, Alt+Click to open the source
Editor
Put the cursor on a source line and press Alt+F to find it in the DOM
Also available as Ctrl+Alt+F (Windows/Linux) or Cmd+Alt+F (Mac).
Commands
domlink: Show in browser : find the current editor line in the open localhost tab
domlink: Reveal location : used by the browser to IDE bridge
Settings
domlink.devServerPort: override the Vite/dev server port (0 = auto-detect)
Links