View Source GenLSP.Structures.FormattingOptions (gen_lsp v0.10.0)
Value-object describing what options formatting should use.
Link to this section Summary
Functions
Fields
tab_size: Size of a tab in spaces.
Link to this section Types
@type t() :: %GenLSP.Structures.FormattingOptions{ insert_final_newline: boolean() | nil, insert_spaces: boolean(), tab_size: GenLSP.BaseTypes.uinteger(), trim_final_newlines: boolean() | nil, trim_trailing_whitespace: boolean() | nil }
Link to this section Functions
fields
Fields
tab_size: Size of a tab in spaces.
insert_spaces: Prefer spaces over tabs.
trim_trailing_whitespace: Trim trailing whitespace on a line.
@since 3.15.0
insert_final_newline: Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
trim_final_newlines: Trim all newlines after the final newline at the end of the file.
@since 3.15.0