Arcen Games
General Category => AI War II => AI War II - Modding => Topic started by: x4000 on May 08, 2019, 11:45:10 am
-
-For those using visual studio, in the Tools->Options menu, please use the following spacing formatting for C# files: https://drive.google.com/file/d/1qUt-BI2udMrzPERD8B6e3aTQoKpcOfGj/view?usp=sharing
--Changes from defaults are:
---Insert space within parameter list parentheses
---Insert space within argument list parentheses
---Insert space after keywords in control flow statements
---Insert spaces within parentheses of control flow statements
I believe everything else is the same. By keeping to one set of code formatting, we avoid having whitespace changes clutter up our svn commits, and in general also prevent ourselves from having inconsistent code formatting. Note that some of my own recent checkins have been using the wrong auto-formatting, but it also applies to the WeaponMaster changes, since we both had default Visual Studio installs. Finally got around to fixing that for myself. Thanks to Badger for pointing out how the codebase was drifting!
-
I took the liberty to submit to SVN an EditorConfig file to enforce Arcen Games spacing style in all solutions. Supported natively by recent versions of Visual Studio 2017 and above, and by a lot of other editors. Cf https://editorconfig.org and https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions
-
Good plan