A VS Code extension that keeps track of the last visited file and allows you to quickly switch back and forth between the current file and the alternate file.
Features
Automatic File Tracking: The extension automatically tracks which files you're switching between
Quick Switching: Use a single command to switch between the current file and the last visited file
Seamless Integration: Works with any file type and doesn't interfere with your normal workflow
How It Works
File Tracking: When you switch between files in VS Code, the extension automatically tracks the current file and the previous file (alternate file)
Switching: Use the "Switch to Alternate File" command to quickly jump between the current and alternate files
Continuous Tracking: The extension continues to track file changes as you work, always maintaining the most recent file pair
Usage
Command Palette
Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux)
Type "Switch to Alternate File"
Press Enter to switch to the alternate file
Keyboard Shortcut
You can also bind this command to a keyboard shortcut in your VS Code settings: