I know that I can format code in VSC by doing as in this link: How do you format code in Visual Studio Code (VSCode)
However, I want only the indentation and not other formatting. For example, I don't want the first {
of the for-loop to end up on the row below the for
. How do I do that?
Once again. When highlighting and formatting this piece of code:
int i;
for (i=0; i < 10; i++) {
printf("hello\n");
}
I do NOT want this result:
int i;
for (i=0; i < 10; i++)
{
printf("hello\n");
}
But I DO want this result:
int i;
for (i=0; i < 10; i++) {
printf("hello\n");
}