In the CotEditor app
on your Mac, use Edit settings to choose how the editor behaves while editing. To change these settings, choose CotEditor > Settings, 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 character inserts a matching closing character automatically and moves the insertion position between them. |
| Swap “¥” and “\” keys | Input a backslash (\) using the key 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 |
| Option | Description |
|---|---|
| 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. |
| 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 the 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. |