Okay, I'm stuck!
At the moment, when I pressing tab
, my code is complemented basic constructs(e.g if, for, while). This snippets(as I know), not formatting code. Curly brackets inserted a new line like this:
if()
{
/* code */
}
for()
{
/* code */
}
It irritates me. I need this:
if() {
/* code */
}
for() {
/* code */
}
How do I do it? Need to change snippets or it's easier?
This is not a formatting of already written code, so this solutions did not help me.
Install extension in vscode:
- ms-vscode.cpptools
- austin.code-gnu-global