Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Switch between Code/TestNew to Visual Studio Code? Get it now.
Switch between Code/Test

Switch between Code/Test

Bjorn Arnholtz

|
239 installs
| (1) | Free
Switches between code-file and test-file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Switch between Code/Test

A command that allows you to quickly switch between test and code.

Press ctrl+shift+a toggle between test/file.spec.js and file.js

Or use the command: Switch between Code/Test

Default keybinding:

ctrl+shift+a (macOS: cmd+shift+a)

Requirements

For now, this plugin is not configurable and assumes the directory structure in the above example.

Resources

Resource URL
Repository https://github.com/bjornua/vscode-switch-code-test
Marketplace Page https://marketplace.visualstudio.com/items?itemName=BjornArnholtz.switch-to-spec

Changelog

  • V0.0.9: Add support for hybrid .ts/.js workflows (@martinslota)
  • V0.0.8: Refactor and fix inconsistencies
  • V0.0.7: Add support for .ts and src folder (@martinslota)
  • V0.0.6: /some/subdir/test folder location now supported (@papaendrou)
  • V0.0.5: Ask before creating files
  • V0.0.4: Add support for alternative "tests" folder
  • V0.0.3: Create path if it does not exist
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft