dotnet/roslyn

Indenting a raw string literal breaks it when a line starts with different whitespace than the IDE indents with

Aperta

#59.594 aperta il 16 feb 2022

 (2 commenti) (0 reazioni) (1 assegnatario)C# (4257 fork)batch import
Area-IDEBughelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Version Used: 17.2-p1

Starting text:

var x =
"""
normal line
	line starts with tab char
""";

image

Select this statement and indent it. The IDE leaves the tab char at the start of the line and inserts spaces after it:

    var x =
    """
    normal line
	    line starts with tab char
    """;

image

This is no longer valid syntax.

Guida contributor