In visual studio code:
.editorconfig
csharp_indent_case_contents_when_block = false
In visual studio: tools > options > text editor > C# > Code Style > Formatting > Indentation > uncheck "indent case contents (when block) Options menu image