Skip to content

[Question] How to prevent newline between property name and curly brace? #983

@SpaceOgre

Description

@SpaceOgre

Environment

  • Visual Studio version: 2022 Enterprise
  • CodeMaid version: 12.0
  • Code language: C#

Description

I have an older codebase and there are a lot of get only properties that looks like this:

public Guid LanguageId { get { return Language.ValueOrDefault(x => x.Id); } }

When I choose to clean document with CodeMaid it is changed to

public Guid LanguageId
{ get { return Language.ValueOrDefault(x => x.Id); } }

If I just format the document using Visual Studios built in Format document this does not happen so it seems to be a CodeMaid thing. I have tried changing the different settings but can't find the one to change, is it possible to change this behavior?

It is the same if it has a set to.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions