Switch between files with related extensions. For instance, .cpp (C++ source), .inl (C++ inline files) and .h (headers).
Missing files will be skipped over silently, making it easy to support extra languages or unusual extensions (e.g. there are various conventions for C++ files).
This is similar to a number of other extensions that toggle between header and source, but can support cycles of more than two files, which is useful for C++ inline files.
Hit 'CTRL+7' ('Cmd+7' on Mac) to iterate through the different extensions of the same root file. If there are no other matching files, you'll get a notification.
extensionswitcher.extensions
: an array of extensions to iterate through.
extensionswitcher.switch
: do the switching. Defaults to Ctrl+7 (Cmd+7).
None, though this is my first VSCode extension. Caveat emptor.
Don't be shy!
- file-ext-switcher - this is the most similar extension, and it supports iterating through more than two files.
- Header source
- Toggle Header/Source
Bugfix: now iterates in the current editor window rather than the leftmost one.