Skip to content

Files

Latest commit

Jul 23, 2025
7e5d971 · Jul 23, 2025

History

History

code-actions-sample

README.md

Code Action Provider Sample

This sample shows how to provide code actions in the editor. Code actions are used to implement quick fixes and refactoring in VS Code.

The sample uses the CodeActionProvider api to implement a simple set of code actions that convert :) to a smiley emoji in markdown files:

Emoji code actions

Second example of code action provider shows how to associate code actions with diagnostic (e.g. compilation) problems.

Diagnostic code actions

VS Code API

vscode module