codeswitch is a VS Code extension that provides quick file navigation and position marking capabilities. It helps you:
Switch between Java test and implementation files quickly
Jump to specific line numbers
Create and manage code position marks
Features
1. Test/Implementation Toggle
Quick switching between test and implementation files
Automatic recognition of "Test" suffix in filenames
Workspace-wide file search support
Smart handling of multiple file matches
2. Line Navigation
Quick jump to specific line numbers
Smart line number validation and boundary handling
Maintains editor focus and scroll position
3. Position Marks
Create named bookmarks at any code position
Quick navigation to existing marks
View and manage all created marks
Marks persist within workspace storage
Fuzzy search support in marks list
Usage
Basic Commands
Press Ctrl+G (all platforms), then:
Press Enter: Switch between test and implementation files
Enter a number: Jump to that line number
Enter text: Create a new mark or jump to existing mark
Mark Management
Creating a mark:
Press Ctrl+G
Enter a mark name (e.g., "main-function")
Press Enter to save
Jumping to a mark:
Press Ctrl+G
Enter an existing mark name
Press Enter to jump
Viewing all marks:
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Type "codeswitch: List All Marks"
Select a mark to jump to
Examples
# Switch to test file
AnyFile.java ⟶ AnyFileTest.java
# Jump to line
42 ⟶ Jumps to line 42
# Create/jump to mark
auth-logic ⟶ Creates or jumps to "auth-logic" mark
Requirements
VS Code version: ^1.98.0
Node.js version: >=20.0.0
Important Notes
Marks are stored in workspace storage and are workspace-specific
File switching requires test files to end with "Test" suffix
Mark names must be unique within a workspace
All commands work across the entire workspace, not just open files