dotnet / dotnet/roslyn

Formatter should clean up leading white space in front of an indented raw string line

Open
#84,997 0 comments 0 reactions 0 assignees View on GitHub
Area-IDE IDE-Formatter
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

Inspired by https://github.com/dotnet/sdk/pull/55542#discussion_r3837081177

Code example:
Image

Pay attention to the fact that between `Line 1` and `Line 3` there is an empty line with just white spaces. Since the raw string is indented the chunk of white space on that line is effectively useless. Formatter should clean up things like this

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the raw-string formatter example and tracing the formatter's handling of indented raw-string lines; done means whitespace-only lines inside the raw string are cleaned up without changing meaningful content.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.