From the course: Angular: Testing and Debugging

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Basic EditorConfig configuration

Basic EditorConfig configuration - Angular Tutorial

From the course: Angular: Testing and Debugging

Start my 1-month free trial

Basic EditorConfig configuration

- [Instructor] In the last video we installed the extension for VS code to use editorconfig in our project. Now let's take a look at the config file itself. This is the default config file that Angular includes when we generate a new project using the CLI tool. It lives in the root of the project and the file name is .editorconfig right here. Whenever you open a file, the editorconfig plugin looks for a file with the name .editorconfig. It first looks in the same directory as the open file and then it traverses up through the parent directories. The plugin will keep looking for config files until it runs out of directories or it finds one with this root equals true setting. We write the config file using key value pairs and files are parsed from the top down. So later rules override earlier ones. This asterisk is a wildcard selector. It matches any character except file path separators. So basically forward slash. Charset controls the character set used for the file. The default UTF8…

Contents