General Category > AI War II - Modding

The Arcen C# code conventions (whitespace setup) for Visual Studio.


-For those using visual studio, in the Tools->Options menu, please use the following spacing formatting for C# files:
--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 and

Good plan


[0] Message Index

Go to full version