Megosztás a következőn keresztül:


CodeActionPriority Enum

Definition

Priority of a particular code action produced by either a CodeRefactoringProvider or a CodeFixProvider. Code actions use priorities to group themselves, with lower priority actions showing up after higher priority ones. Providers should put less relevant code actions into lower priority buckets to have them appear later in the UI, allowing the user to get to important code actions more quickly.

public enum CodeActionPriority
type CodeActionPriority = 
Public Enum CodeActionPriority
Inheritance
CodeActionPriority

Fields

Name Value Description
Lowest 0

Lowest priority code actions. Will show up after Low priority items.

Low 1

Low priority code action. Will show up after Default priority items.

Default 2

Medium priority code action.

High 3

High priority code action. Note: High priority is simply a request on the part of a CodeAction. The core engine may automatically downgrade these items to Default priority.

Applies to