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

Find in Current File

peterjpxie

|
655 installs
| (1) | 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

Find in Current File

A fork of https://github.com/shibayu36/vscode-search-in-current-file with bug fixes.

This is a Visual Studio Code extension that makes it easy to find all in the current active editor.

Demo

How to Use

Install this extension from marketplace or build and install by source code.

Open VS code command palette (Ctrl+Shift+P) and type or select 'Find in Current File'.

It will search the selected text (or enter later if no selected text) in the current file displayed in the active editor.

What it does is just to get the filename in the active editor, open the Search panel, and automatically enter the filename into "files to include" field.

Default Keyboard Shortcut

{
  "key": "ctrl+alt+c",
  "mac": "cmd+alt+c",
  "command": "find-in-current-file.searchInCurrentFile",
  "when": "editorFocus || editorIsOpen"
}

Build, Test and Publish

Check RELEASE.md

Contribution

Issues and PRs are welcomed.

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