I need to setup a common code styling pattern which team needs to follow and will give warning or error to the developer while writing/compiling the code or pushing the code on the repository.
I have gone through couple of sites explaining about the EditorConfig file for setting up the styling in Visual Studio.
Also Gone through the link Code Style Option to give the style to the code.
The problem is Code Style Option have predefined styling.
I need to setup some custom styling in code like
- A space before and after = operator
- A space after comma in function parameter.
- A proper indentation will be applied automatically to that file after the build. etc
If the answer lies in the Editorconfig for this Please let me know a guide to data setup in that file