I usually use cmd+k, cmd+f when aligning indents, and when writing Java, indent is
for(inti=0;i<10;i++){
~~~~~~~~~~~~
}
However, if you use the same shortcut when writing C language,
for (inti=0;i<10;i++)
{
~~~~~~
}
It will look like .
This indent is very difficult for me to see, so I want to do the same as when I was writing Java, but I didn't know how to set it up, so I'd like to ask you.
java c vscode
The following settings resolved the issue.
Google
in C_Cpp.clang_format_style
editor.formatOnType
is the true
Reference:
I want to change the shape of a new line in parentheses in VSCode
Setting Visual Studio Code (C/C++ Edition)
This post was edited based on @RugbyRugby's Comment and posted as Community Wiki.I edited this post based on @RugbyRugby's Comment and posted it as Community Wiki.
768 GDB gets version error when attempting to debug with the Presense SDK (IDE)
765 M2 Mac fails to install rbenv install 3.1.3 due to errors
633 PHP ssh2_scp_send fails to send files as intended
751 Error in x, y, and format string must not be None
845 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2025 OneMinuteCode. All rights reserved.