Skip to content

Convert to 'Program.Main' style program should keep leading trivia inside Main method #61126

Description

@DoctorKrolic

Version Used:
Latest main

Steps to Reproduce:

// user must provide at least 1 cmd argument
if (args.Length == 0)
{

}

Execute Convert to 'Program.Main' style program refactoring

Expected Behavior:

internal class Program
{
    private static void Main(string[] args)
    {
        // user must provide at least 1 cmd argument
        if (args.Length == 0)
        {

        }
    }
}

Actual Behavior:

// user must provide at least 1 cmd argument
internal class Program
{
    private static void Main(string[] args)
    {
        if (args.Length == 0)
        {

        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions