dotnet/roslyn

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

Ouverte

#59 594 ouverte le 16 févr. 2022

 (2 commentaires) (0 réaction) (1 personne assignée)C# (4 257 forks)batch import
Area-IDEBughelp wanted

Métriques du dépôt

Stars
 (20 414 étoiles)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

Description

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.

Guide contributeur