vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Raw string literals have very poor support

Open just-ero opened this issue 6 months ago • 1 comments

Environment Data

VS Code version: 1.99.3 C# Extension version: 2.74.24

Steps to Reproduce

  1. Attempt to declare a raw string literal anywhere by typing its opening 3 (or more) quotation marks:
    string s = """|
    
    Where | is the cursor position.

Expected Behavior

The corresponding 3 quotation marks should be inserted on the other side of the cursor.
Inserting a new line then formats the quotation marks like below:

string s = """
    |
    """

Where | is the cursor position.

Actual Behavior

The corresponding 3 quotation marks are not inserted.
Inserting a new line results in the cursor being on the same level as the declaration:

string s = """
|

Where | is the cursor position.

just-ero avatar Apr 30 '25 17:04 just-ero