Changing STM32CubeIDE Settings

Set Code Style

Goto Window -> Preferences

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

In the popup window, select the formatter config file

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

Variable: Lower Case, "_" as delimiter

Class Field: Lower Case, "_" as delimiter

Click Apply and Close button

Auto Format Code

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

Change to Dark Mode

Goto Window -> Preferences -> General -> Appearance

Select Dark mode under Theme

Open Serial Monitor

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

Select "Serial Port", and click New button.

Select the correct COM port. Click Finish.

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

Enable Floating Point printf()

Goto Project -> Properties

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

Last updated

Was this helpful?