Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Search in Current FileNew to Visual Studio Code? Get it now.
Search in Current File

Search in Current File

shibayu36

|
6,088 installs
| (6) | Free
Search only in the current file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Search in Current File

This is a Visual Studio Code extension that makes it easily to search in current active editor. It is inspired by the emacs extension helm-occur.

Demo

Commands

Search in Current File

Search only in current file displayed in the active editor. Automatically, the currently selected text is filled into the search query, and the current file is filled into "files to include" in the Search Panel.

Useful Keyboard Shortcuts Example

// Only type ctrl+o when using Find.
// the query in Find is filled into the query in Search.
{
  "key": "ctrl+o",
  "command": "search-in-current-file.searchInCurrentFile",
  "when": "editorFocus && findInputFocussed"
},
{
  "key": "ctrl+cmd+o",
  "command": "search-in-current-file.searchInCurrentFile",
  "when": "editorFocus"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft