-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed as not planned
Labels
Area-IDEConcept-Continuous ImprovementRetriageUser StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.
Milestone
Description
Spec: https://github.com/dotnet/csharplang/blob/main/proposals/raw-string-literal.md
Championed issue: dotnet/csharplang#4304
IDE Feature List
-
Balance quotes (both in single-line and multi-line cases)
Example:
- User has the following code:
var s = """ hello world """;- User adds starting
":
var s = """" hello world """;- Roslyn should auto-add an ending
":
var s = """" hello world """"; -
Balance curly braces in interpolated strings (both in single-line and multi-line cases)
Example:
- User has the following code:
var s = $$""" { hello world }; """- User adds
{:
var s = $$""" {{ hello world }; """- Roslyn should auto-add an ending
}:
var s = $$""" {{ hello world }}; """ -
Indentation indication line
Example:
- User has the following code:
var xml = """ <element attr="content"> <body> </body> </element> """;- Roslyn should add an option to show a visual line to show where the indentation of the raw string literal begins:
var xml = """ |<element attr="content"> | <body> | </body> |</element> """; -
Automatically add spaces to content if user adds spaces to last line
Example:
- User has the following code:
var xml = """ <element attr="content"> <body> </body> </element> """;- User adds spaces to last line:
var xml = """ <element attr="content"> <body> </body> </element> """;- Roslyn should auto-adjust contents to the right so the user avoids ending up in an error state:
var xml = """ <element attr="content"> <body> </body> </element> """; -
Refactoring for converting a verbatim string with escapes to a raw string literal:
Example:
- User has the following code:
var s = @"hello "" world ";- Roslyn should offer a refactoring to convert it to the following:
var s = """hello " world""";
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEConcept-Continuous ImprovementRetriageUser StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.