How to fix inconsistent line endings for whole VS solution?

后端 未结 4 1801
天涯浪人
天涯浪人 2021-01-31 14:45

Visual Studio will detect inconsistent line endings when opening a file and there is an option to fix it for that specific file. However, if I want to fix line endings for all f

4条回答
  •  误落风尘
    2021-01-31 15:04

    Try doing

    Edit > Advanced > Format Document
    

    Then save the document, as long as the file doesn't get modified by another external editor, it should stay consistent. Fixes it for me.

提交回复
热议问题