/file-switcher

VSCode extension for switching files with same name but different file extension

Primary LanguageTypeScriptMIT LicenseMIT

File Switcher - VSCode Extension

This was made for Unreal development using clangd but can be used for anything.

clangd doesn't like Unreal Source files so the Alt+O shortcut doesn't work a lot of the time(switches to wrong file). This extension uses simpler methods when switching files using Alt+O.

Installation

  1. Download .vsix file from this github
  2. Open VSCode and click the 'Extensions' icon on the left panel
  3. Look for the ... (three dots) at the top of the Extensions panel(left side), click on it, and select Install from VSIX...

Setup

After installing you'll need to adjust your Alt+O keyboard shortcut for other extensions

Note: You don't have to delete these keyboard shortcuts you can just change them to something else.

For example I change these shortcuts below to Control+Shift+Alt+O (clangd and C/C++)

Note: You can see above that there are two clangd entries.

  • This is because there was an update to clangd keyboard shortcuts
  • They updated their extension to a more advanced 'When' clause
  • So if you notice the Alt+O shortcut not working correctly, recheck if an update added a new/different Alt+O keyboard shortcut to an extension
  • I kept the two clangd entries for demonstration purposes. I will delete the older one.

Extension Settings

This extension contributes the following settings:

  • file-switcher.extensions: Two strings of extensions separated by ','

    • These strings determine the file extension that are compatable to this extension.
  • file-switcher.log.logLevel: logging for the extension

  • file-switcher.cache.pathCount: Cache path count for storing paths for faster retrieval

Release Notes

See changelog