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

Switch Source/Test

ander

|
30 installs
| (2) | Free
Switch between source and test files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

  • Quickly switch between source and test files.
  • Automatically create test files if they do not exist.
  • Supports both JavaScript and TypeScript files.

Installation

  1. Open VS Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  3. Search for "switch-source-test".
  4. Click Install.

Usage

  1. Open a source or test file in the editor.
  2. Press Ctrl+Shift+P to open the Command Palette.
  3. Type "Switch Source/Test" and select the command.
  4. The extension will switch to the corresponding test or source file. If the file does not exist, it will be created automatically.

Contributing

If you would like to contribute to the development of this extension, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with a descriptive message.
  4. Push your changes to your fork.
  5. Create a pull request with a description of your changes.

License

This extension is licensed under the MIT License. See the LICENSE file for more information.

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