Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 728 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 728 Bytes

Introduction

This extension enables you quickly switch among relevant files. Press Ctrl+Alt+S to switch to another file from quick pick.

Quick Switch

Settings

The following setting enables quick switch among .cpp, .h and _ut.cpp files.

"quickSwitch.rules": [
    {
        "pattern": "(.+?)(_ut\\.cpp|\\.cpp|\\.h)",
        "list": [
            "$1.cpp",
            "$1.h",
            "$1_ut.cpp"
        ]
    }
]
  • pattern: a regular expression to match the current file path (used '/' as path separator). The first rule that matches will be used for quick switch.
  • list: an ordered list of files for quick switch. Use $n to reference the capturing groups defined in pattern.