dotnet/roslyn

[C#] Nested curly brace is not auto completed in interpolated string

Open

#72,116 创建于 2024年2月15日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (4,257 fork)batch import
Area-IDEhelp wanted

仓库指标

Star
 (20,414 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Ported from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1956301

Open C# console app Type the following characters

var x = $"{{

Expected (| indicating the caret): string x = $"{{|}}" Actual: string x = $"{{|}"

--

Note: When fixing this, fix https://github.com/dotnet/roslyn/issues/61541 as well (the raw string literal case).

贡献者指南