Navigate, create, and rename CSS rules directly from your JSX/TSX — without leaving your editor.
Features
Jump & Peek — F12 on any className or id to jump to the CSS rule. Split panel by default. Ctrl+K Ctrl+P to peek inline. If multiple CSS files match, a picker lets you choose.
Reverse Navigation — F12 on a .selector inside a CSS file to find every JSX/TSX file that uses it.
Auto-create — Ctrl+. on a missing class or id to create the rule (or the whole CSS file + import) and land your cursor inside the block.
Autocomplete — Type inside className="" for selector suggestions from your imported CSS. Type . at the start of a CSS line for class names from your JSX files.
Project-wide Rename
Alt+R or F2 on any class or id — renames across all CSS and JSX/TSX files at once. Scoped to the nearest package.json so sub-packages are never touched.
Keyboard Shortcuts
Key
Action
F12
Jump to CSS rule
Ctrl+K Ctrl+P
Peek CSS rule
Ctrl+.
Quick Fix — create rule / create file
Alt+R / F2
Rename project-wide
Settings
Setting
Default
Description
cssBridge.openLocation
beside
beside = split panel, active = replace current tab
cssBridge.autoCreateImport
true
Allow auto-creating CSS file and import
Known Limitations
Dynamic className expressions (className={`card--${size}`}) are not supported
Ctrl+Space required after # for id completion in CSS (VS Code color picker limitation)
Ctrl+Click always opens in same group — use F12 instead
Release Notes
1.0.1
Fix:data-id, aria-id, and other *-id attributes are no longer falsely matched as id=. Same fix prevents myCustomClassName= from being treated as className=. Affects Jump, Peek, Autocomplete, and Rename.
Fix: Reverse navigation (CSS → JSX, F12 on a .selector) and Rename no longer match attribute-shaped text inside JS/JSX comments.
Fix: CSS-side autocomplete on # now returns id suggestions correctly. Items also keep their ./# prefix on accept (no more dropped or duplicated trigger char).
Feat:Ctrl+K Ctrl+P (Peek) now also works from a CSS file — peeks JSX usages of the selector under the cursor.
Perf: Cache JSX/TSX import resolution by mtime — no more re-parsing with Babel on every cursor move.