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日
Area-IDEBughelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
Version Used: 17.2-p1
Starting text:
var x =
"""
normal line
line starts with tab char
""";

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
""";

This is no longer valid syntax.