Skip to content

How can I avoid wrapping the Hint typing comment in Dictionary? #1641

@seobilee

Description

@seobilee

Input:

public class ClassName
{
    public Dictionary<string /*key*/, int /*value*/> Dict { get; set; }
    
    public bool DoSomething(Dictionary<string /*key*/, int /*value*/> parameter1)
    {
    }
}

Output:

public class ClassName
{
    public Dictionary<
        string /*key*/
        ,
        int /*value*/
    > Dict { get; set; }

    public bool DoSomething(
        Dictionary<
            string /*key*/
            ,
            int /*value*/
        > parameter1
    ) { }
}

Expected behavior:

public class ClassName
{
    public Dictionary<string /*key*/, int /*value*/> Dict { get; set; }
    
    public bool DoSomething(Dictionary<string /*key*/, int /*value*/> parameter1)
    {
    }
}

Or maybe you guys have some good ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions