adding-lightbulb-actions

Implement ISuggestedAction light bulb actions for Visual Studio extensions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Light bulb actions are the in-editor prompts that offer quick fixes, refactorings, and context-driven actions. This skill provides implementations to create and expose ISuggestedAction-based commands within Visual Studio extensions, bridging VSSDK, MEF, and Roslyn approaches.

Core Features & Use Cases

  • Create ISuggestedAction instances and provide a source/provider to surface in-editor actions.
  • Support Roslyn-based code fixes for C#/VB and VSSDK in-process actions via ISuggestedActionsSource.
  • Ensure MEF asset type registration in the VSIX manifest for proper discovery and activation.

Quick Start

Explain how to implement a light bulb action to convert selected text to uppercase using the ISuggestedAction API.

Frequently Asked Questions about adding-lightbulb-actions

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

FAQPage Schema
How do I add light bulb actions to a Visual Studio extension?

To add light bulb actions, implement ISuggestedAction and ISuggestedActionsSource, then register the MEF asset type in your VSIX manifest to expose in-editor quick fixes and refactorings.

What is an ISuggestedAction in Visual Studio?

An ISuggestedAction in Visual Studio is a code interface that enables developers to provide in-editor light bulb prompts offering quick fixes, refactorings, and context-driven actions within extensions.

Can I use Roslyn code fixes with ISuggestedActionsSource?

Yes, you can use Roslyn-based code fixes for C# and VB alongside VSSDK in-process actions via ISuggestedActionsSource to bridge MEF and Roslyn approaches for light bulb quick fixes.

Why are my Visual Studio light bulb actions not showing up?

Light bulb actions fail to appear when the MEF asset type is not properly declared in the VSIX manifest, preventing Visual Studio from discovering and activating your ISuggestedActionsSource or provider.

Does creating light bulb quick fixes require MEF asset registration?

Yes, creating light bulb quick fixes requires declaring the MEF asset type in the VSIX manifest, which allows Visual Studio to properly discover and activate your ISuggestedAction instances.