struct LSP::FormattingOptions
- LSP::FormattingOptions
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/protocol/formatting_options.crConstructors
- .new(trim_trailing_whitespace : Bool | Nil, insert_final_new_line : Bool | Nil, trim_final_new_lines : Bool | Nil, insert_spaces : Bool, tab_size : Int32)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#insert_final_new_line=(insert_final_new_line : Bool | Nil)
Insert a newline character at the end of the file if one does not exist.
-
#insert_final_new_line? : Bool | Nil
Insert a newline character at the end of the file if one does not exist.
-
#insert_spaces=(insert_spaces : Bool)
Prefer spaces over tabs.
-
#insert_spaces? : Bool
Prefer spaces over tabs.
-
#tab_size : Int32
Size of a tab in spaces.
-
#tab_size=(tab_size : Int32)
Size of a tab in spaces.
-
#trim_final_new_lines=(trim_final_new_lines : Bool | Nil)
Trim all newlines after the final newline at the end of the file.
-
#trim_final_new_lines? : Bool | Nil
Trim all newlines after the final newline at the end of the file.
-
#trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil)
Trim trailing whitespace on a line.
-
#trim_trailing_whitespace? : Bool | Nil
Trim trailing whitespace on a line.
Constructor Detail
Instance Method Detail
Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
Trim all newlines after the final newline at the end of the file.
@since 3.15.0
Trim all newlines after the final newline at the end of the file.
@since 3.15.0
Trim trailing whitespace on a line.
@since 3.15.0