dotnet/roslyn

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

オープン

#59,594 opened on 2022/02/16

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBughelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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.

コントリビューターガイド