jump-source for VS Code
This extension adds multiple shortcuts for quickly jumping between source files and test files.
It enables you to:
This extension assumes that tests have the same name as the source file but with a suffix. It also assumes that the test file is located in the same folder as the source file, or in a subfolder with a known name.
The source file can have any file extension as long as the test file has the same file extension.
This extension contributes the following settings:
Jumping between source file and test file
Jumping to the closest index file
The extension will jump to the index file of the current folder. If the active file is in the test sub folder it will jump to the index file in the parent folder.
List all index files in the workspace
When in case sensitive mode items with the wrong case will be removed from the suggestions. However since the VS Code API doesn't allow to fully control the filter the character highlighting might not highlight as expected.
Remember to review the exclude pattern setting to speed up the search for your particular project.
Create a test file
If you want the test file to have a different file extension you can change the
Cycle through files with the same name
When you have multiple files in the same folder with the same filename but different file extensions, you can cycle through them by opening the command palette with Ctrl + Shift + P and choose the Cycle through files with the same name command. You can also use the keyboard shortcut Shift + Alt + -.
This command is always case insensitive.
Releases of jumpSource for VS Code.
Bug fixes and adjusts semantic versioning. Adds integration tests.
Adds setting for test file extension for cases where the source file and test file have different file extensions.
Adds setting for loose matching of source file and test file. It's now possible to ignore differences in file extension.
Adds support for cycling through files with the same filename in the current folder.
Adds support for creating a test file for the currently active source file.
Fixes issue with opening index file from quick pick.
Adds support for listing all index files in the workspace with filtering capabilities.
Performance fix for jump to index file.
Adds support for jumping to the closest index file.
Adds logo and keywords.
Supports switching to the corresponding test for a source file and back again using the jumpSource command or with a keyboard shortcut.