This question already has an answer here: How do you format code in Visual Studio Code?
All the answers provided in this question are not working with C# code.
I just copied my controller file and opened it in Visual Studio Code. I tried to format code with Shift + Alt + F (both right and left shifts in windows)
But it didn't work.
Is there a solution for this?
The same shortcut is working for HTML and JavaScript files.