Starting with C# for Visual Studio Code Extension 1.23.8 this is supported when Editor: Format On Type.
setting is enabled.
Settings can be found in the menu under File/Preferences/Settings
(Windows/Linux) / Code/Preferences/Settings
(macOS).
The required setting is available under Text Editor/Formatting
.
{
"editor.formatOnType": true,
}