Why does the Visual Studio 2022 ‘prop’ snippet insert 4 spaces instead of 2 for indentation?

Visual Studio 2022, Community Ed.: When using the “prop” and tab shortcut to insert property snippet, the indentation is incorrect

Then indentation for the “prop” snippet should be 2 spaces instead it inserts 4 spaces

The text editors settings (global and C#):

  • set to insert spaces (2)
  • tried both smart and block indentation
  • tried with “adaptive formatting” on and off

other snippets insert with correct indentation.

tried on two different machines with new installation of VS 2022
property snippet indentation

Read more here: Source link