Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open Related JS/TSNew to Visual Studio Code? Get it now.
Open Related JS/TS

Open Related JS/TS

kylejoneswinsted

|
305 installs
| (1) | Free
Open the Javascript file associated with a Typescript and vice versa.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open Related - JS/TS

Open the Javascript file associated with a Typescript file and vice versa.

Features

Reads the root and output directories from tsconfig.json (if one exists) and opens the Typescript or Javascript file in the corresponding directory. If there is no tsconfig, the extension will do it's best to determine which file to open. Also supports typescript declaration files.

Usage

When editing a Typescript or Javascript file, open the command palette (Cmd+Shift+P by default) and select Open Related JS/TS. You can also use the keyboard shortcut Cmd+K followed by J.

Release Notes

1.0.0

  • Initial release
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft