I installed the C/C++ Snippets extension in VS Code, and it creates a snippet like this:
for ( )
{
// your code
}
but I want the open brace on the keyword line:
for ( ) {
I found this topic for C/C++ formation in VS Code: "Format Curly Braces on Same Line in C++ VS Code" but it didn't solve the problem (so, the snippet extension doesn't follow the C formatting "rules" in VS Code, I guess).
I can't find any setting in the VS Code settings JSON file for this extension.
Anyone have an idea?
(In the ideal world, the curly brace for functions would remain on the next line and only braces associated with keywords would be on the same line.)
Thank you,
-Vin