From the course: Visual Studio 2019 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Use EditorConfig for consistent code settings - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
Use EditorConfig for consistent code settings
- [Instructor] To support consistency of editor settings Visual Studio has support for EditorConfig files. This format has wide popularity so let's see what benefit it offers. To learn more check out this editorconfig.org website. I've highlighted one of the relevant portions of the text. The main component is a file format for defining code styles, then editors and IDEs can read this EditorConfig file and re-map settings to what is in the file. This is supported by a lot of IDEs including GitHub and Visual Studio. Let's look at the File Location. This is interesting, when you open a file Visual Studio will look for this .editorconfig file and it starts by looking in the project location. If it finds it there then it uses the settings there or it can look further up the directory tree. So it can look in the parent directories and it will stop when it finds a stop command. So what does this imply? This means that I could create one EditorConfig file and put it in the root folder of all…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.