Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick Open Auto PrefillNew to Visual Studio Code? Get it now.
Quick Open Auto Prefill

Quick Open Auto Prefill

Re3ker

|
1 install
| (0) | Free
Prefills Quick Open (Ctrl/Cmd+P) with selected text from editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick Open Auto Prefill

Version Installs Rating

This extension prefills the Quick Open (Ctrl/Cmd+P) dialog with selected text from your editor, making it easier to quickly navigate to files based on paths or names you see in your code.

Implements the feature requested in microsoft/vscode#59957

Features

  • Automatic Prefill: When you select text and press Ctrl+P (or Cmd+P on Mac), the Quick Open dialog opens with your selection pre-populated
  • Smart Cleaning: Automatically removes quotes and other code artifacts from the selected text
  • Configurable: Multiple settings to customize the behavior to your needs

Use Cases

  • Select a file path like product/edit/new in your code and press Ctrl+P to quickly find matching files
  • Select import paths to quickly navigate to those modules
  • Select component names to find their files

Extension Settings

This extension contributes the following settings:

  • quickOpenPrefill.enabled: Enable/disable the extension (default: true)
  • quickOpenPrefill.onlySingleLine: Only prefill if selection is on a single line (default: true)
  • quickOpenPrefill.maxLength: Maximum length of selected text to prefill, 0 for unlimited (default: 100)
  • quickOpenPrefill.trimWhitespace: Trim leading and trailing whitespace from selected text (default: true)

Keybindings

This extension overrides the default Quick Open keybinding:

  • Windows/Linux: Ctrl+P
  • Mac: Cmd+P

The extension only activates when text is selected in the editor. If no text is selected, it behaves like the standard Quick Open.

How to Use

  1. Select any text in your editor (e.g., a file path, component name, or module name)
  2. Press Ctrl+P (Windows/Linux) or Cmd+P (Mac)
  3. The Quick Open dialog will open with your selection pre-populated
  4. Start typing to further refine your search or press Enter to open the first match

Requirements

  • Visual Studio Code version 1.80.0 or higher

Known Issues

None at this time. Please report issues on the GitHub repository.

Release Notes

0.0.1

Initial release of Quick Open Auto Prefill

  • Prefills Quick Open with selected text
  • Configurable behavior
  • Smart text cleaning for file searches

Contributing

Found a bug or have a feature request? Please open an issue on the GitHub repository.

License

MIT

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