Jump between .css
/.js
files with a keyboard shortcut, or define your own pairs of counterparts.
Look for Jump to counterpart
in the extensions directory, or run ext install vscode-jump-to-counterpart
Add the following configuration to your user/workspace settings and cusmotize it to your needs:
{
"jumpToCounterpart.pairs": {
".js": ".css",
".tsx": ".module.css"
}
Open keybindings and define a shortcut for jumpToCounterpart.jump
Once things are set up, open (for example) a .js
file and perform the keyboard shortut you defined earlier. If the file's name is foo.js
, this extension will open the foo.css
file that sits next to foo.js
. If the counterpart doesn't exist, it'll be created.
MIT