cancel
Showing results for 
Search instead for 
Did you mean: 

When the file is too large, stmclang may freeze or fail when formatting code.

brucegong
Associate III

Linux VM 6.17.0-7-generic #7-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 18 10:10:29 UTC 2025 x86_64 GNU/Linux

vscode 1.106.3

Only the ST plugin package is installed, without the Microsoft C++ plugin or clangd.

 

The formatting function is not working properly. The attachment is the result formatted using the Microsoft C++ plugin (only the Microsoft plugin) on Windows.

1 REPLY 1
Cartu38 OpenDev
Lead III

@brucegong 
See https://community.st.com/t5/stm32cubeide-for-visual-studio/code-formatting-style/td-p/853625 possibly.
If formater not functional let's configure VSCode - relying on extra extensions possibly -  the way you want to get it up & running.
While discussing about formater feature marketplace is your friend.
If clang* has some limitation let's report to proper community (LLVM project) and point us the issue report link for reference it may help this community.