ProjectManager.Formatting(DocumentFormattingParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the edits to format the file according to the specified settings.
public Microsoft.VisualStudio.LanguageServer.Protocol.TextEdit[]? Formatting (Microsoft.VisualStudio.LanguageServer.Protocol.DocumentFormattingParams? param);
member this.Formatting : Microsoft.VisualStudio.LanguageServer.Protocol.DocumentFormattingParams -> Microsoft.VisualStudio.LanguageServer.Protocol.TextEdit[]
Public Function Formatting (param As DocumentFormattingParams) As TextEdit()
Parameters
- param
- DocumentFormattingParams
Returns
- TextEdit[]
Remarks
Returns null if some parameters are unspecified (null), or if the specified file is not listed as source file