Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Corresponding file openerNew to Visual Studio Code? Get it now.
Corresponding file opener

Corresponding file opener

eduardo-moro

|
3 installs
| (0) | Free
Quickly switch between corresponding source/header files with keyboard shortcuts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Corresponding Files"
  4. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft