switch-header-source

Quick switching between C/C++/Objective-C header and source files

dschwen

51,102

66

0.34.5

MIT

GitHub

This package consumes the following services:

switch-header-source package

Quick switching between corresponding C, C++, Objective-C, and Objective-C++ header and source files...

...Actually between any arbitrarily defined groups of files (as long as you can match their filenames with a regular expression)!

For example:

switching-in-action

Usage

Mac

Use Ctrl-Option-s to cycle forward though groups of matching files ( Shift-Ctrl-Option-s to cycle backwards).

Linux, Windows

Use Alt-o to cycle forward though groups of matching files (Shift-Alt-o to cycle backwards).

Configuration

The plugin will match each file's name in the project using the regular expression in the Tracked file regular expression setting. If the file name matches it is added to the group of files that shares the first capture group (this is the part of the regular expression that was matched in the first pair of parenthesis).

Let's for example decipher the Tracked file regular expression setting

(.*)\.(h|cpp)$

Examples

(.*)\.(js|html|css)$
(.*)-(\d+)$