Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>asaNew to Visual Studio Code? Get it now.
asa

asa

denzeysenpai

|
1 install
| (0) | Free
Find and replace feature using select
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ASA - Advanced Selection Assistant

A powerful VSCode extension that provides enhanced find and replace functionality within selected text portions.

Features

Find in Selection

  • Select any text in your editor and press CTRL+ALT+F (or CMD+ALT+F on Mac)
  • A find dialog appears next to your editor, allowing you to search within the selected text only
  • The selected text gets highlighted in pink with black text color
  • All matching substrings are highlighted with yellow text color

Find and Replace

  • Find: Search for specific text within your selection
  • Replace: Replace the first occurrence of the found text
  • Replace All: Replace all occurrences of the found text within the selection
  • Individual Replace: Replace specific matches individually using replace buttons
  • Enhanced match display with line numbers and text previews
  • Click on any match to navigate directly to that location in the editor
  • Focused match highlighting in red for clear visual feedback

Search Modes

  • Case Insensitive: Search without regard to case (default)
  • Case Sensitive: Search with exact case matching
  • Regular Expression: Search using regex patterns
  • Whole Word: Match only complete words

Match Navigation and Interaction

  • Click to Navigate: Click on any match text to jump to that location
  • Focused Highlighting: Clicked matches are highlighted in red while others remain yellow
  • Individual Replace Buttons: Each match has its own replace button for precise control
  • Real-time Updates: Match list updates automatically after replacements
  • Line Number Display: Each match shows its line number for easy reference

Visual Effects

  • Selected text background changes to pink with black text color when searching
  • Found substrings are highlighted with yellow text color for easy identification
  • Focused matches are highlighted in red text color when clicked
  • Find dialog follows your VSCode theme for seamless integration
  • Decorations are automatically cleared when the find panel is closed
  • Scrollable results panel with hover effects on interactive elements

Usage

  1. Select text in any editor using mouse click and drag
  2. Press CTRL+ALT+F (Windows/Linux) or CMD+ALT+F (Mac)
  3. In the find panel that appears:
    • Enter text to find in the "Find" field
    • Select search mode from the dropdown (Case Insensitive, Case Sensitive, Regex, Whole Word)
    • Optionally enter replacement text in the "Replace" field
    • Click "Find" to highlight matches
    • Click "Replace" to replace the first match
    • Click "Replace All" to replace all matches
  4. In the results panel:
    • View all matches with line numbers and text previews
    • Click on any match text to navigate to that location (match turns red)
    • Click "Replace" button on individual matches to replace specific ones
    • Use scrollable list to browse through many matches
  5. Visual feedback:
    • Yellow highlighting for all found matches
    • Red highlighting for the currently focused match
    • Pink background for the selected text area
  6. Close the panel to clear all decorations

Keyboard Shortcuts

Shortcut Command Description
CTRL+ALT+F / CMD+ALT+F asa.findInSelection Open find dialog for selected text

Requirements

  • Visual Studio Code 1.116.0 or higher
  • No additional dependencies required

Extension Settings

This extension does not currently contribute any VSCode settings. All functionality is accessible through the keyboard shortcut.

Known Issues

  • Find functionality only works within the currently selected text
  • Decorations are cleared when switching to a different file

Release Notes

1.0.2

Major Feature Enhancements:

  • Added search mode dropdown with Case Insensitive, Case Sensitive, Regex, and Whole Word options
  • Enhanced match display showing line numbers and text previews instead of just count
  • Implemented click-to-navigate functionality for matches with red focused highlighting
  • Added individual replace buttons for each match for precise control
  • Improved UI with scrollable results panel and hover effects
  • Real-time search mode switching without losing current search

Visual Improvements:

  • Focused matches now highlight in red text color when clicked
  • All other matches remain highlighted in yellow for clear distinction
  • Enhanced match item layout with separate areas for text, line numbers, and actions
  • Improved button styling and interactive feedback

User Experience Enhancements:

  • Click on match text to navigate to that location in the editor
  • Individual replace buttons for each match provide granular control
  • Match list automatically updates after replacements
  • Better visual hierarchy and information density in results panel
  • Smooth transitions and hover states for better interactivity

1.0.1

  • Initial release with find in selection functionality
  • Find and replace capabilities within selected text
  • Visual highlighting with pink background for selection and yellow text for matches
  • Theme-aware find dialog interface

Following extension guidelines

This extension follows VSCode extension development best practices.

  • Extension Guidelines

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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