I have the following version of visual studio:
Microsoft Visual Studio Community 2017 Version 15.1 (26403.7) Release VisualStudio.15.Release / 15.1.0 + 26403.7
I created a new project and added the file .editorconfig
to the folder with the database of solutions. It contains the following:
root = true
[*.cs]
indent_style = space:warning
indent_size = 12:warning
[{*.cs,*.vb}]
dotnet_style_qualification_for_field = false:warning
The file location must be correct:
.editorconfig <-- Here it is
ApplicationInsights.config
App_Data
App_Start
bin
Content
Controllers
favicon.ico
fonts
Global.asax
Global.asax.cs
Models
obj
packages.config
Properties
Scripts
Startup.cs
Views
Web.config
Web.config.backup.1
Web.Debug.config
Web.Release.config
WebApplication8.csproj
WebApplication8.csproj.user
But whenever I edit the .cs file, nothing special happens (despite the fact that the attachment does not contain the rule), I get a warning (after the build, for example) to show, but not.
Is there something wrong with my configuration, or is there something that might interfere with the use of the configuration?
source
share