Skip to content

Code Formatting Using Visual Studio

Darice L Guittet edited this page Oct 9, 2020 · 2 revisions

In order to make sure SAM's code has a consistent format, we ask contributors to use automatic code formatting. wxWidgets comes with a .editorconfig file that we use within the SAM, SSC, LK, and Wex repositories. In order to set up this file for the SAM project:

  1. Copy .editorconfig from wxWidgets to the same folder as your umbrella CMake file
  2. Ensure the "Follow project coding conventions" box is checked in Visual Studio
  3. Reload the project as needed.

If you are editing an older file and want to bring it up to conventions all at once, use Edit > Advanced > Format Document.