Skip to main content
Associate II
October 3, 2026
Solved

Why doesn't STM32Cube for VSCode have a code formatting feature?

Why doesn't STM32Cube for VSCode have a code formatting feature? It clearly shows that “stm32cube clangd” is installed, but pressing Alt+Shift+S and selecting “Format” doesn't work. I'm using the Trae IDE.

 

*This post has been translated from Chinese to comply with the ST Community guidelines (Article 10.2).

    Cartu38 OpenDev
    Cartu38 OpenDevBest answer
    Graduate II
    October 3, 2026

    ​@STM_student ​@stephenie

     

     

    6 replies

    Cartu38 OpenDev
    Graduate II
    October 3, 2026

    ​@STM_student 

    Absolutely, but you'll need to enable it. Please refer to the relevant preferences.

    *This post has been translated from Chinese to comply with the ST Community guidelines (Article 10.2).

     

    Cartu38 OpenDev
    Cartu38 OpenDevBest answer
    Graduate II
    October 3, 2026

    ​@STM_student ​@stephenie

     

     

    Associate II
    October 3, 2026

    I see. I'll give it a try tomorrow.

     

    *This post has been translated from Chinese to comply with the ST Community guidelines (Article 10.2).

    Associate II
    October 4, 2026

    It worked after all—thanks. I hadn't turned this setting on before.

    *This post has been translated from Chinese to comply with the ST Community guidelines (Article 10.2).

    Cartu38 OpenDev
    Graduate II
    October 6, 2026

    ​@STM_student 
    Could you tag this post as answered success ? Will help other freaks !