dotnet/roslyn

Incorrect smart indent anchor following `do` keyword

開放

#50,063 建立於 2020年12月18日

 (11 則留言) (1 個反應) (1 位負責人)C# (4,257 個分叉)batch import
Area-IDEBugDeveloper CommunityIDE-Formatterhelp wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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
            $$
    }
}

貢獻者指南