Skip to main content

get_code_actions

List available code actions (refactorings and fixes) at a position in a C# file. Optionally specify endLine/endColumn to select a range for extract-method style refactorings. Returns action titles that can be passed to apply_code_action.

Parameters

ParameterTypeRequiredDescription
filePathstringFull path to the C# source file
lineintLine number (1-based)
columnintColumn number (1-based)
endLineint?End line for text selection (1-based, optional)
endColumnint?End column for text selection (1-based, optional)