title: Auto format C# code In Visual Studio Code
body: <p>I have enabled the latest C# extension in my Visual Studio Code editor. Instead of formatting the code while saving or by applying the key combination <kbd>Ctrl</kbd> + <kbd>K</kbd>, <kbd>Ctrl</kbd> + <kbd>F</kbd> or <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>F</kbd>, I need to format the current line of code while hitting the <kbd>Enter</kbd> key. This feature is already available in Visual Studio, but not found in Visual Studio Code by default.</p>
  <p>This is the sample code output I need to achieve:</p>
  <p><a href="https://i.stack.imgur.com/Hsuyv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hsuyv.png" alt="Enter image description here" /></a></p>