# Consistent formatting and indentation of Slicer C++ sources

**URL:** <https://discourse.slicer.org/t/consistent-formatting-and-indentation-of-slicer-c-sources/34550>\
**Category:** Development\
**Created:** [February 26, 2024, 6:29pm UTC](https://discourse.slicer.org/t/consistent-formatting-and-indentation-of-slicer-c-sources/34550 "2024-02-26T18:29:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 26, 2024, 6:29pm UTC](https://discourse.slicer.org/t/consistent-formatting-and-indentation-of-slicer-c-sources/34550/1 "2024-02-26T18:29:06Z")

</div>

After updating the C++ source files to a common indentation style \[1\], we are now finalizing the integration of `.clang-format` configuration files as well as `pre-commit` configuration ensuring that IDE can appropriately format the code and continuous integration workflow can report when improperly formatted code is contributed.

See [PR-7603](https://github.com/Slicer/Slicer/pull/7603): `STYLE: Consistent formatting and indentation of C++ sources`

* * *

Before we move forward with the integration 🚀 , let us know if you have any comments, suggestions or questions 🙏

* * *

1. [https://github.com/Slicer/Slicer/pull/7596](https://github.com/Slicer/Slicer/pull/7596)
