Corresponding Files
Quickly switch between corresponding source/header files using Alt+H (configurable).
Features
- Switch between related files with keyboard shortcut
- Configurable file associations
- Preserves focus and window layout
- Supports multiple extensions (C, C++, and custom)
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Corresponding Files"
- Click Install
Configuration
Add to your settings.json:
{
"correspondingFiles.sourceExtensions": [".c", ".cpp", ".cc"],
"correspondingFiles.headerExtensions": [".h", ".hpp"]
}
Keybindings
Default: Alt+H
You can change this in File > Preferences > Keyboard Shortcuts
Project created with by AI, thought to improve productivity.
| |