Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>codeswitchNew to Visual Studio Code? Get it now.
codeswitch

codeswitch

elizhg

|
1 install
| (0) | Free
Quick file navigation and position marking for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

codeswitch

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

  1. Creating a mark:

    • Press Ctrl+G
    • Enter a mark name (e.g., "main-function")
    • Press Enter to save
  2. Jumping to a mark:

    • Press Ctrl+G
    • Enter an existing mark name
    • Press Enter to jump
  3. 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

Contributing

Contributions are welcome! Feel free to:

  • Submit issues for bugs or feature requests
  • Create pull requests for improvements
  • Suggest documentation updates

License

MIT

Roadmap

Future improvements may include:

  • Custom test file suffix configuration
  • Mark categories/tags support
  • Mark import/export functionality
  • Status bar integration
  • Multi-workspace mark support
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft