Skip to content

Insert blank line between methods, but not between methods in an interface. #901

@Dorus

Description

@Dorus

Environment

  • Visual Studio version: 2022 Pofessional
  • CodeMaid version: 12.0.300
  • Code language: C#

Description

Insert blank line between methods, but not between methods in an interface.

If i have 2 methods in a class, i like a blank line between them. However, when i declare an interface, i would prefer to keep them all without newlines.

public class Buzz {
  public void foo() {
    // do stuff
  }

  public void bar() {
    // do stuff
  }
}

and

public interface IBuzz {
  void foo();
  void bar();
}

I can get either situatoin with the Cleaning->Insert options, but not both.

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions