Overview Version History Q & A Rating & Review
Quick Open Auto Prefill
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
Select any text in your editor (e.g., a file path, component name, or module name)
Press Ctrl+P (Windows/Linux) or Cmd+P (Mac)
The Quick Open dialog will open with your selection pre-populated
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