pub struct EditorConfigProperties {
pub indent_style: EditorConfigProperty<IndentStyle>,
pub indent_size: EditorConfigProperty<usize>,
pub tab_width: EditorConfigProperty<usize>,
pub end_of_line: EditorConfigProperty<EndOfLine>,
pub charset: EditorConfigProperty<Charset>,
pub trim_trailing_whitespace: EditorConfigProperty<bool>,
pub insert_final_newline: EditorConfigProperty<bool>,
pub max_line_length: EditorConfigProperty<MaxLineLength>,
}Fields§
§indent_style: EditorConfigProperty<IndentStyle>Set to tab or space to use tabs or spaces for indentation, respectively. Option tab implies that an indentation is to be filled by as many hard tabs as possible, with the rest of the indentation filled by spaces. A non-normative explanation can be found in the indentation_ section. The values are case-insensitive.
indent_size: EditorConfigProperty<usize>Set to a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). If this equals tab, the indent_size shall be set to the tab size, which should be tab_width (if specified); else, the tab size set by the editor. The values are case-insensitive.
tab_width: EditorConfigProperty<usize>Set to a whole number defining the number of columns used to represent a tab character. This defaults to the value of indent_size and should not usually need to be specified.
end_of_line: EditorConfigProperty<EndOfLine>Set to lf, cr, or crlf to control how line breaks are represented. The values are case-insensitive.
charset: EditorConfigProperty<Charset>Set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set. Use of utf-8-bom is discouraged. The values are case-insensitive.
trim_trailing_whitespace: EditorConfigProperty<bool>Set to true to remove all whitespace characters preceding newline characters in the file and false to ensure it doesn’t.
insert_final_newline: EditorConfigProperty<bool>Set to true ensure file ends with a newline when saving and false to ensure it doesn’t. Editors must not insert newlines in empty files when saving those files, even if insert_final_newline = true.
max_line_length: EditorConfigProperty<MaxLineLength>Prettier print width. Not part of spec https://github.com/editorconfig/editorconfig-vscode/issues/53#issuecomment-462432616 But documented in https://prettier.io/docs/next/configuration#editorconfig
Trait Implementations§
Source§impl Clone for EditorConfigProperties
impl Clone for EditorConfigProperties
Source§fn clone(&self) -> EditorConfigProperties
fn clone(&self) -> EditorConfigProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more