struct
LSP::FormattingOptions
- LSP::FormattingOptions
- Struct
- Value
- Object
Overview
Value-object describing what options formatting should use.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- LSP::Initializer
Defined in:
requests/language_features/formatting.crConstructors
Instance Method Summary
-
#insert_final_newline : Bool | Nil
Insert a newline character at the end of the file if one does not exist.
-
#insert_final_newline=(insert_final_newline : Bool | Nil)
Insert a newline character at the end of the file if one does not exist.
-
#insert_spaces : Bool
Prefer spaces over tabs.
-
#insert_spaces=(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_newlines : Bool | Nil
Trim all newlines after the final newline at the end of the file.
-
#trim_final_newlines=(trim_final_newlines : Bool | Nil)
Trim all newlines after the final newline at the end of the file.
-
#trim_trailing_whitespace : Bool | Nil
Trim trailing whitespace on a line.
-
#trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil)
Trim trailing whitespace on a line.
Macros inherited from module JSON::Serializable
json_discriminator(field, mapping, *, default = nil)
json_discriminator
Constructor Detail
Instance Method Detail
Insert a newline character at the end of the file if one does not exist.
Insert a newline character at the end of the file if one does not exist.
Trim all newlines after the final newline at the end of the file.
Trim all newlines after the final newline at the end of the file.
Trim trailing whitespace on a line.