2026-03-11 12:12 AM - last edited on 2026-03-12 3:08 AM by Andrew Neil
After upgrading STM32CubeIDE for Visual Studio Code to version 3.8.0, the code formatting function is no longer available. Currently, while writing the code and entering ";", the formatting feature is not functioning. When saving the code, the code will not be automatically formatted; both "Format on Save" and "Format On Type" in the settings have been checked.
Solved! Go to Solution.
2026-03-11 12:53 AM
It seems they've introduced a new setting for the clangd extension that controls formatting. It's disabled by default. After enabling the option, automatic formatting started working again.
2026-03-11 12:53 AM
It seems they've introduced a new setting for the clangd extension that controls formatting. It's disabled by default. After enabling the option, automatic formatting started working again.
2026-03-11 6:21 PM
That's exactly the case.
2026-03-14 9:31 AM
It tripped me up too as it wasn't very explicit in the release notes.
Thankfully, I stumbled onto this and updated our project's ".vscode/settings.json" to handle this auto-magically.
2026-03-15 10:53 PM
@t_j_l @Suess @r8l8pinip
Related to https://community.st.com/t5/stm32cubeide-for-visual-studio/code-formatting-style/m-p/853625#M1407
Some were complaining about formating being applied ... now you're part of the ones complaining nothing happens anymore :-).
Myself I would recommend you to setup your own formatting. VS Code marketplace is promoting collection of facilities for. Have you got a try about as example of https://marketplace.visualstudio.com/items?itemName=xaver.clang-format