Project FilesLesson 192Free preview
.editorconfig Generator
This lesson is part of Web Developer Tools · All levels
Summary
The .editorconfig generator generates a code-style rule file that is read by many editors and IDE's. Rules such as the type of indentation, the size of the indentation, the end of the row, and the new line at the end of the file keep the code format consistent even though the teams use different editors. This file is not a formatter, but the editor that supports it will apply the rules when writing or formatting code.
Key points
- Root = true stops searching for configurations in the parent folder
- Parts such as [*.js] apply to files that match the pattern
- Indent_style can be space or tab, whereas indent_size sets the width.
- End_of_line specifies LF or CRLF
- Insert_final_newline ensures the file ends with a new line
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.