Skip to content

Comments moved from between 'usings' and inital 'namespace' to top of file #10

Description

@glenn-slayden

Any C# comments located between the usings declarations and the initial namespace declaration are moved to the top of the file, above the usings declarations. This is true for all comment types:

  • // ...
  • /* ... */
  • /// <summary> ... </summary>

For example, the following source file...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// comment
namespace ConsoleApp13
{
}

Incorrectly becomes...

// comment
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp13
{
}

This may not be desirable. If the behavior is intentional, it should be configurable for people who don't want comments moved around.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions