Skip to content

[LSP] [Feature Suggestion]: Automatic formatting for raw string literals #68537

@just-ero

Description

@just-ero

Summary

Beginning a new raw string literal by typing at least 3 " characters in a row should have the closing 3 (or more) " characters automatically appended, along with a terminating ;, if not already present.
A subsequent line break should automatically skip the closing 3 " to a line below, and indent both new lines.

Background and Motivation

This feature is present in Visual Studio, but not in Visual Studio Code.

The process to add a new raw string literal in Visual Studio is tedious and inacceptably slow:

  • All 6 " and the terminating ; need to be typed manually.
  • One has to navigate back into the center of the 6 ".
  • One has to manually break 2 lines to have the closing 3 " on their own line.
  • One has to indent both lines manually.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions