Expected:
C#private static string GetExtensionFromFileType(FileType fileType)
{
return fileType switch
{
FileType.EpubAny or FileType.Epub or FileType.EpubEnhanced or FileType.Epub3 => "epub",
FileType.Pdf => "pdf",
_ => throw new ArgumentOutOfRangeException(nameof(fileType), fileType, $"{nameof(fileType)} not recognized."),
};
}
Every time I format the code, the first item shifts to the right and the last two items inside the switch are moved to column 0.
Actual:
C#private static string GetExtensionFromFileType(FileType fileType)
{
return fileType switch
{
FileType.EpubAny or FileType.Epub or FileType.EpubEnhanced or FileType.Epub3 => "epub",
FileType.Pdf => "pdf",
_ => throw new ArgumentOutOfRangeException(nameof(fileType), fileType, $"{nameof(fileType)} not recognized."),
};
}
Changing the "wrap comma" align by to "Expression" Indent 1 helps, but the first item still continues its voyage every time "format code" is invoked.
Rune,
I reproduced this issue. We are working on a fix. Please bear with us.
Thank you Przemyslaw.
This isn't a critical issue for me, but I'm glad you're working on a fix. All is good.