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.
| Option | Description |
|---|---|
| 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 charater inserts a matching closing character automatically and move 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 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 ation removes all whitespaces in whitespace-only lines |
| Option | Description |
|---|---|
| Automatic indent | New lines are automatically indented by hitting the Return/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 opened document is spaces or tab, and automatically set whether expand tab input into spaces on the document. If there is no enough indented lines for detection, the setting of “Expand tabs to spaces” will be used. |
| Indent selection with Tab key | On Tab key pressed, the selections are indented instead of a tab character is inserted, if text is selected. |
| Option | Description |
|---|---|
| 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. |
| Option | Description |
|---|---|
| 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 line head. |
| Option | Description |
|---|---|
| Completion list includes | Choose the range of possible completions that appear in the completion list.
|
| Suggest completions while typing | The completion list is automatically shown while typing if words to complete exist. |