dotnet/roslyn

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

開放

#59,594 建立於 2022年2月16日

 (2 則留言) (0 個反應) (1 位負責人)C# (4,257 個分叉)batch import
Area-IDEBughelp wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南