With CRYENGINE 5.1 we have improved overall code quality and applied a new unified coding standard across all Engine modules. This page describes the most convenient way of upgrading from a previous Engine version (3.8.x) to CRYENGINE 5.1 or later code base.
By integrating uncrustify with Visual Studio it is possible to have your code auto-formatted in accordance with the guidelines and every time you save your work. This takes away any effort involved in complying with the standard.
You can find the tool at root/Code/Tools/uncrustify
.
Get and store it at in a temporary location. Open it and change the executable and parameters paths so that they match your CRYENGINE installation directory (4 spots in total).
Download and install the "Code Beautifier" from the following page: Code Beautifier extension for Visual Studio 2015.
Click the Import... button and load your customized CodeBeautifierSettings.xml.
Verify that the application path and arguments path are valid, then Save.
You can now format documents from the menu as shown in step 3 (or you can bind this to a hotkey/make a button in a toolbar with the default VS customization features).