shurunxuan / IGME-601-2181-Team-C

1 stars 0 forks source link

Added a new EditorConfig file #46

Closed shurunxuan closed 5 years ago

shurunxuan commented 5 years ago

I just added an EditorConfig file as requested.

The file contains the default settings of .Net and C# programming, including formattings like indentions, braces, and some keywords, and naming and coding conventions. I'm pretty happy with this default setting. I'd like to know your opinions.

To ensure the file is working, inside Visual Studio, go to Tools - Options - Text Editor - General and make sure that "Follow project coding conventions" is checked. Also, since .sln files are ignored in .gitignore, the config file might not work after merged. So you need to add this file to the solution manually by right clicking on "Solution 'Infiltrator-D' (2 projects)" inside the Solution Explorer, and go to Add - Existing Item, and then choose the .editorconfig file.

After this PR is merged, you need to merge it into your own branch. And after that, please auto-format all of the files you are working on with Ctrl + K, Ctrl + D. I will handle all the older ones to prevent merge conflicts.