Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>FMOF - Find My Open FileNew to Visual Studio Code? Get it now.
FMOF - Find My Open File

FMOF - Find My Open File

Frederik Hudák

|
1 install
| (0) | Free
| Sponsor
Quickly search for occurrences of your currently open file's name across your workspace
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FMOF - Find My Open File

License: MIT

Quickly search for occurrences of your currently open file's name across your workspace.

What's the point

Finding references to a file by its name is a common need:

  • Component-based frameworks (Vue, Svelte, React, Angular) where component names are derived from filenames
  • Configuration files referenced by name in other configs
  • Module imports using filename-based resolution
  • Asset files (images, stylesheets, data files) referenced across your codebase
  • Any file where "Go to References" doesn't help because the filename itself is what's being referenced
  • File mentioned in comments

Some language-specific extensions offer this feature, but FMOF provides a universal, language-agnostic solution that works everywhere.

Features

Feature Description
📝 Search without extension Find all references to just MyComponent
🔍 Search with extension Find all references to the currently opened file, including the extension (MyComponent.vue)
🖱️ Context menu Right-click in any editor to search (configurable)
⌨️ Keyboard shortcut Ctrl+Shift+F11 for quick search without extension
🎯 Auto-focus results Navigate immediately with arrow keys

Command Palette

  1. Open any file
  2. Press Ctrl+Shift+P / Cmd+Shift+P
  3. Run either:
    • Find My Open File (without extension)
    • Find My Open File (with extension)

Context Menu

Right-click in any open editor and select:

  • Find My Open File (without extension)
  • Find My Open File (with extension)

context menu

Keyboard Shortcut

Command Shortcut Description
Find without extension Ctrl+Shift+F11 Search for filename only
Find with extension unbound by default Bind your own in Keyboard Shortcuts

Settings

Setting Default Description
FMOF.showContextMenuWithExtension true Show "with extension" in context menu
FMOF.showContextMenuWithoutExtension true Show "without extension" in context menu

Limitations

Simple text search The extension is intentionally simple and language-agnostic. This means it only performs a fulltext search. If your file is named b and you don't want to search with extension, then good luck with that.

Contributing

I don't expect much need for contribution here. But you can Open an issue on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft