dotnet/roslyn

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

Open

#72 116 ouverte le 15 févr. 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C# (4 257 forks)batch import
Area-IDEhelp wanted

Métriques du dépôt

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

Description

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).

Guide contributeur