EditorConfig takes no effect on that part. Generally, if a property is not specified, the editor settings will be used, i.e. editorconfig files search on current file.Ĭurrently all properties and values are case-insensitive. root: special property that should be specified at the top of the file outside of any sections.insert_final_newline: set to true to ensure file ends with a newline when saving and false to ensure it doesn't.trim_trailing_whitespace: set to true to remove any whitespace characters preceding newline characters and false to ensure it doesn't.charset: set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set.
end_of_line: set to lf, cr, or crlf to control how line breaks are represented.This defaults to the value of indent_size and doesn't usually need to be specified. tab_width: a whole number defining the number of columns used to represent a tab character.When set to tab, the value of tab_width (if specified) will be used.
File Format DetailsĮditorConfig files use an INI format that is compatible with the format used by Python ConfigParser Library, but are allowed in the section names.
#SUBLIME TEXT 3 AUTO INDENT WINDOWS#
(note the trailing dot), which Windows Explorer will automatically rename to. editorconfig file within Windows Explorer, you need to create a file named. Properties from matching EditorConfig sections are applied in the order they were read, so properties in closer files take precedence.įor Windows Users: To create an. editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.ĮditorConfig files are read top to bottom and the most recent rules found take precedence. editorconfig in the directory of the opened file and in every parent directory. When opening a file, EditorConfig plugins look for a file named. indent_style = space indent_size = 2Ĭheck the Wiki for some real-world examples of projects using EditorConfig files. end_of_line = lf insert_final_newline = true # Matches multiple files with brace expansion notation Root = true # Unix-style newlines with a newline ending every file