adding-tool-window-search

Enable native Visual Studio tool window search with VSSDK or VSIX Community Toolkit.

14|2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/madskristensen/vs-agent-plugins --skill adding-tool-window-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-tool-window-search
Source: https://github.com/madskristensen/vs-agent-plugins/tree/main/skills/adding-tool-window-search
Command: npx skills add https://github.com/madskristensen/vs-agent-plugins --skill adding-tool-window-search

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrates the native Visual Studio search capability into a tool window, enabling users to search within a tool window with MRU history, progress feedback, and filters.

Core Features & Use Cases

  • Enable the built-in tool window search bar via ToolWindowPane.SearchEnabled for in-window search
  • Implement search tasks with VsSearchTask to run background queries
  • Add configurable search options and filters to tailor the search experience
  • Supports VSSDK and VSIX Community Toolkit in-process tool windows (out-of-process extensions are not supported)

Quick Start

Enable the native tool window search bar in a VS extension by setting SearchEnabled to true on the tool window pane and implementing a VsSearchTask to perform the search.

Frequently Asked Questions about adding-tool-window-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a native search bar to a Visual Studio tool window?

To add a native search bar to a Visual Studio tool window, set SearchEnabled to true on the ToolWindowPane and implement a VsSearchTask to execute the query. This enables in-window search with progress feedback and MRU history.

Can I use the VSIX Community Toolkit to implement tool window search?

Yes, the VSIX Community Toolkit supports implementing tool window search. This works for in-process extensions built with either the VSIX Community Toolkit or VSSDK, allowing you to configure search settings and filters.

How do I create a background search task for a VS extension tool window?

You create a background search task by implementing VsSearchTask within your tool window pane. This handles the search query execution asynchronously, enabling features like content filtering and MRU queries.

Does Visual Studio tool window search support filters and search options?

Yes, tool window search supports configurable options and filters. You can implement SearchOptionsEnum and SearchFiltersEnum alongside ProvideSearchSettings to tailor the search behavior and refine query results.

Why is my Visual Studio tool window search not working in an out-of-process extension?

Tool window search is not working because out-of-process extensions are not supported. The native search bar integration only applies to in-process extensions built with VSSDK or the VSIX Community Toolkit.

How do I reset content in a Visual Studio tool window after a search?

To reset content after a search, implement the ClearSearch method on your tool window pane. This clears the active search task results and restores the tool window to its default unfiltered state.