Share via


CodeActionKind Enum

Definition

Enum which represents the various kinds of code actions.

See the Language Server Protocol specification for additional information.

public enum class CodeActionKind
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
[System.Runtime.Serialization.DataContract]
public enum CodeActionKind
[<Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))>]
[<System.Runtime.Serialization.DataContract>]
type CodeActionKind = 
Public Enum CodeActionKind
Inheritance
CodeActionKind
Attributes
Newtonsoft.Json.JsonConverterAttribute DataContractAttribute

Fields

Name Value Description
QuickFix 0

Code action is a quick fix.

Refactor 1

Code action is a refactor

RefactorExtract 2

Code action is a refactor for extracting methods, functions, variables, etc.

RefactorInline 3

Code action is a refactor for inlining methods, constants, etc.

RefactorRewrite 4

Code action is a refactor for rewrite actions, such as making methods static.

Source 5

Code action applies to the entire file.

SourceOrganizeImports 6

Code actions is for organizing imports.

Empty 7

Code action is Empty.

Applies to