dotnet/roslyn

Incorrect smart indent anchor following `do` keyword

Aperta

#50.063 aperta il 18 dic 2020

 (11 commenti) (1 reazione) (1 assegnatario)C# (4257 fork)batch import
Area-IDEBugDeveloper CommunityIDE-Formatterhelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Version Used: 16.8.3

🔗 Originally filed as AB#1259025 🔗 This is also the root cause of AB#1289599 🔗 This is also the root cause of AB#1348257 🔗 This is also the root cause of AB#1469007

Steps to Reproduce:

class Test
{
    void Method()
    {
do$$
    }
}

Press Enter after the do keyword.

Expected Behavior:

class Test
{
    void Method()
    {
do
    $$
    }
}

Actual Behavior:

class Test
{
    void Method()
    {
do
            $$
    }
}

Guida contributor