---
description: >-
  Autoformating C/C++ code can be done with clang-format. The appropriate files
  to use this are below:
---

# Autoformatting

{% file src="https://3510336827-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7yGVyBrcpSR8SDSikj%2F-M7y_D5zAh9VKC0oOUhn%2F-M7y_buDri1tijtESg_3%2Fclang-format?alt=media&token=cd5e7f31-1a1e-4469-9be7-c323f8cbbbd1" %}
clang-format Download
{% endfile %}

{% file src="https://3510336827-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7yGVyBrcpSR8SDSikj%2F-M7y_D5zAh9VKC0oOUhn%2F-M7y_Smnta1TCvuAuuKJ%2Fformat.sh?alt=media&token=a7b0b259-6116-4b3c-afe9-20b1f03acc3f" %}
format.sh Download
{% endfile %}

Set up clang-format on your path with your terminal of choice (as found online), then run "format.sh".

## Teams Contributed to this Article:

* [BLRS](https://purduesigbots.com/) (Purdue SIGBots)
