> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/stm32/getting-started-stm32-edition/changing-stm32cubeide-settings.md).

# Changing STM32CubeIDE Settings

## Set Code Style

Goto **Window** -> **Preferences**

![](/files/VgcVkEeVFuMz6ZvGvSBc)

Goto **C/C++** -> **Formatter**, click the **Import** button.

![](/files/DRhRpzdGOEIp4xadNdiz)

{% file src="/files/EdqsGkMM6dfK3JslVEfK" %}

In the popup window, select the formatter config file

![](/files/REAPIAVL33gKencnxJ7b)

Then, in the Name Style tab, change the following fields:

Variable: Lower Case, "\_" as delimiter

![](/files/vWWlRQm6KDTvPRo6Z1DB)

Class Field: Lower Case, "\_" as delimiter

![](/files/T5wu5sTzneDUu9aFwMPC)

Click **Apply and Close** button

![](/files/ob7OVIh3qLsxD4fxnO7k)

## Auto Format Code

Right-click on any file that needs to be formatted. Select **Source** -> **Format**.

![](/files/ReLYjNUQsycc2o7gWzzP)

## Change to Dark Mode

Goto **Window** -> **Preferences** -> **General** -> **Appearance**

Select **Dark** mode under Theme

![](/files/JgSRjNDMYCCzAkWTxXeR)

## Open Serial Monitor

At the bottom panel, click **Open Console** button -> **3 Command Shell Console**.

![](/files/FanOSLm0cxoTHNedz2Ea)

Select "Serial Port", and click **New** button.

![](/files/9LsIHo6S1CVRSuTRnKba)

Select the correct COM port. Click **Finish**.

![](/files/xLDvlPO4ad2wKfN1I9Tq)

Change Encoding to "UTF-8". Click **Ok**.

![](/files/ZiMFUewL1kRAm9cCvFzz)

## Enable Floating Point printf()

Goto **Project** -> **Properties**

![](/files/rxvBHjtxi3wyzMoRqyex)

Goto **C/C++ Build** -> **Settings** -> **MCU Settings**, check the "Use float with printf from newlib-nano" setting.

![](/files/DChjLPdHsl0e4EMyMZ1M)
