# Find inconsistent line endings in CotEditor on Mac

CotEditor automatically detects line endings inconsistent with the document line ending setting. Inconsistent line endings can cause problems in various ways, such as running a script.

## Detect line endings in the file

CotEditor automatically inspects line endings in the document when loaded, and sets the common line ending type to the document line ending.

At the same time, if there are multiple types of line endings in the document, CotEditor alerts about it. In the dialog, you can then choose whether to convert all those inconsistent line endings to the most common line endings or leave them for now so that you can review them.

If you select the “Don’t ask again for this document” checkbox, the warning dialog doesn’t appear anymore for the document, even when inconsistent line endings are found when opening the document. To turn off the warning dialog for all documents entirely, go to General settings > Manage Warnings, and select the “inconsistent line endings dialog.”

## Look over the location of inconsistent line endings

The Warnings pane lists all the line endings inconsistent with the document line ending.

To show the Warnings pane:

1. Choose View > Inspector > Warnings.

## Find inconsistent line endings in the editor

When the visibility setting of the line endings is selected, the inconsistent line endings are drawn in a different color. See Display invisible characters for instructions on how to change the line endings’ visibility.

## Normalize line endings

You can convert all line endings including inconsistent ones to a single line ending type by selecting the document line ending in the Line Endings menu.

## See also

- Handle various types of line endings
- Find or replace a line ending
- Find characters incompatible with document encoding