Edit preferences

The Edit preferences let you set the behavior of text view while text editing and its display.

Substitution
You can set the substitution behavior in the editor.
Smart copy/paste
When this option turned on, when you paste or drag a word in between other words, a halfwidth space will be automatically added between the 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
When this option turned on, typing an opening bracket or quote charater inserts a matching closing character automatically and move the insertion position between them.
Swap “¥” and “\” keys
When this option turned on, you can input a backslash (\) using the key binding for the Yen sign (¥), and vice versa.
Smart
Quotes
When this option turned on, inserted quote (") will be automatically substituted with matched quote (“ or ”).
Dashes
When this option turned on, inserted hyphens (--) will be automatically substituted with a dash sign (—).
Indentation
You can set the indentation behavior in the editor.
Automatic indent
When this option is turned on, CotEditor automatically indents each line you create by hitting the Return/Enter key. The new line will begin at the same indentation point as the previous line.
Expand tabs to spaces
When this option turned on, CotEditor automatically converts tab characters to spaces as you type.
Indent width:
You can specify the number of spaces to which a tab character is expanded.
Detect indent style on document opening
When this option turned on, 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
When this option turned on, on Tab key pressed, the selection will be indented instead of a tab character is inserted, if text is selected.
Line wrapping
You can set the line wrapping behavior in the editor.
Wrap lines to editor width
When this option is turned on, CotEditor soft-wraps long lines so that you can view them within the window width. Otherwise, CotEditor shows horizontal scroll bar without wrapping text.
Indent wrapped lines
When this option is turned on, hanging lines are automatically visually indented. You can also set additional indent width to them.
Comment
You can set the comment-out/uncomment behavior in the editor.
Append a space to comment delimiter
When this option turned on, a single space character will be appended between comment delimiters and commented out strings.
Always from line head
When this option turned on, the selected lines will be commented out always from line head.
Completion
You can set the completion behavior in the editor.
Completion list includes:
Here, you can change the range of possible completions that appear in the completion list.
Words in document
The list includes the words appear in your document.
Words defined in syntax style
The list includes the words defined by your syntax style (in the case you've not specified any completions, the words generated by the syntax coloring rule appear).
Standard words
The list includes standard words.
Suggest completions while typing
When this option is turned on, completion list will be automatically shown if words to complete exist.

See also