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

Switcher

blackmery

|
12,496 installs
| (2) | Free
An extension for Visual Studio Code that quickly open a file for another file extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Switcher for Visual Studio Code

Version Installs GitHub issues MIT

Switcher is an extension for the Visual Studio Code.
This extension provides the ability to switch to a file of a different file extension with the same file name.

List

Installation

Press F1 in VS Code, type install and then look for Switcher.

List

Key bindings

Keys Commands
Alt+O Switcher: Default
Ctrl+Alt+O Switcher: In the Workspace Root

Change the key bindings

Press F1 in VS Code, type Keyboard Shortcuts and then edit a keybindings.json.

{ "key": "alt+o",      "command": "extension.switcher.doSwitch" },
{ "key": "ctrl+alt+o", "command": "extension.switcher.doSwitchInWorkspaceRoot" }

Configurations

Add or change the search order of the file extension

Add a suffix to search for the file name, and can also change the search order.
Press F1 in VS Code, type User Settings or Workspace Settings and then edit a settings.json.

"switcher.findSuffixOrder": [
    ".m",
    ".mm",
    ".cs",
    ".cpp",
    ".cxx",
    ".c++",
    ".cc",
    ".c",
    ".h",
    ".hpp",
    ".hxx",
    ".inc",
    ".inl",
    "-inl.h",
    "_inl.h",
    ".js",
    ".html",
    ".css"
]

Change the Switcher: Default of behavior

You can the behavior of the Switcher: Default. The default of the config is false, but if you change the true will be the same behavior as the Switcher: In the Workspace Root.
Press F1 in VS Code, type User Settings or Workspace Settings and then edit a settings.json.

"switcher.findAllFilesInRootDirectory": false

Changes

Version 0.1.2: January 26, 2017

  • Fix a bug that Untitled-1 was opened.

Version 0.1.1: June 16, 2016

  • Upload a icon of the Switcher.
  • Update a README.md.

Version 0.1.0: June 15, 2016

  • First release.

More information

  • Switcher on the Visual Studio Marketplace
  • GitHub repository
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft