In visual code you are able to do some indentation settings, this is my attemt to the K&R style (sort of)

{ BasedOnStyle: LLVM, IndentWidth: 4, ColumnLimit: 0,AllowShortFunctionsOnASingleLine: true,BreakBeforeBraces: Custom, BraceWrapping: {AfterFunction:  true, AfterClass: true }}

This should give you an indentation of 4 and some settings to curly braces, like:

  if (true) {
      printf("true");
  } else {
      printf("false");
  }