Skip to content

The LineEnding setting in .clang-format has no effect within VS Code #12352

Open
@haferburg

Description

@haferburg

Environment

  • OS and Version: Ubuntu 22.04 LTS
  • VS Code Version: 1.89
  • C/C++ Extension Version: v1.20.5

Bug Summary and Steps to Reproduce

Create a .cpp file with LF line endings.
Configure a .clang-format file with

LineEnding: CRLF

The format the document.

Expected: The line endings should have been converted to CRLF.

Actual: The line endings stay at LF.

Configuration and Logs

not necessary

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions