General Category > AI War II - Modding

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

(1/1)

x4000:
-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!

Asteroid:
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

Draco18s:
Good plan

Navigation

[0] Message Index

Go to full version