Change Edit preferences in CotEditor

In the CotEditor app on your Mac, use Edit preferences to choose how the editor behaves while editing. To change these preferences, choose CotEditor > Preferences, then click Edit.

Open CotEditor for me

Substitution
OptionDescription
Smart copy/paste A halfwidth space is automatically added between the words when you paste or drag a word in between other words to maintain that boundary. Meanwhile, any extra spaces will be automatically removed when you cut/delete a word.
Automatically insert closing brackets and quotes Typing an opening bracket or quote character inserts a matching closing character automatically and moves the insertion position between them.
Swap “¥” and “\” keys Input a backslash (\) using the key binding for the Yen sign (¥), and vice versa.
Smart Quotes Inserted quotes (") are automatically substituted with the matched quote (“ or ”).
Smart Dashes Inserted hyphens (--) are automatically substituted with a dash sign (—).
Automatically trim trailing whitespace Whitespaces at the end of lines are removed automatically while typing.
Including whitespace-only lines Trimming action removes all whitespaces in whitespace-only lines
Indentation
OptionDescription
Automatic indent New lines are automatically indented by hitting the Return or Enter key. The new line will begin at the same indentation point as the previous line.
Expand tabs to spaces Tab characters are automatically converted to spaces as you type.
Indent width Set the number of spaces to which a tab character is expanded.
Detect indent style on document opening Detect whether the indent style of the opened document is spaces or tab, and automatically set whether expand tab input into spaces on the document. If there are not enough indented lines for detection, the setting of “Expand tabs to spaces” will be used.
Indent selection with Tab key On the Tab key pressed with text selection, the selections are indented instead of inserting a tab character. Likewise, on the Tab-Shift keys pressed, the selections are outdented.
Line wrapping
OptionDescription
Wrap lines to editor width Soft-wrap long lines at the window edge so that they are visible. Otherwise, A horizontal scroll bar is shown without wrapping text.
Indent wrapped lines Visually indent Hanging lines automatically. Additional indent width can also be set.
Comment
OptionDescription
Append a space to comment delimiter By commenting out, a single space character is appended between comment delimiters and commented-out strings.
Always from line head The selected lines are commented out always from the line head.
Completion
OptionDescription
Completion list includes Choose the range of possible completions that appear in the completion list.
  • Words in document: The list includes the words that appear in your document.
  • Words defined in syntax style: The list includes the words defined in the syntax style (in the case you’ve not specified any completions, the words generated by the syntax style definition appear).
  • Standard words: The list includes standard words.
Suggest completions while typing The completion list is automatically shown while typing if words to complete exist.

See also