Skip to content

Commit cc9d194

Browse files
committed
fix: editor settings
1 parent 3446e4f commit cc9d194

File tree

1 file changed

+39
-43
lines changed

1 file changed

+39
-43
lines changed
Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,41 @@
11
# Editor Settings
22

3-
Customize the code editor to match your coding style.
4-
5-
## Scroll Settings
6-
7-
Opens a sub-page with these options:
8-
9-
| Setting | Description |
10-
| :--------------------- | :---------------------------------- |
11-
| **Diagonal Scrolling** | Enable diagonal scrolling behavior. |
12-
| **Reverse Scrolling** | Reverse the scroll direction. |
13-
| **Scroll Speed** | Adjust the scrolling speed. |
14-
| **Scrollbar Size** | Set the size of the scrollbar. |
15-
16-
## Appearance
17-
18-
| Setting | Description |
19-
| :------------------------- | :--------------------------------------------------------- |
20-
| **Editor Font** | Choose a font for the editor. |
21-
| **Font Size** | Adjust the editor font size. |
22-
| **Line Height** | Set line spacing between lines. |
23-
| **Cursor Controller Size** | Size of the teardrop cursor controller. |
24-
| **Color Preview** | Shows preview of colors in editor as a chip or square. |
25-
| **Show Line Numbers** | Display line numbers in the gutter. |
26-
| **Relative Line Numbers** | Show line numbers relative to the current cursor position. |
27-
| **Show Spaces** | Display whitespace characters (spaces, tabs). |
28-
| **Show Print Margin** | Display a vertical line at a specified column. |
29-
| **Print Margin** | Set the column position for the print margin. |
30-
| **Fade Fold Widgets** | Fade fold widgets when not needed. |
31-
32-
## Editing Behavior
33-
34-
| Setting | Description |
35-
| :--------------------------- | :--------------------------------------------------------------- |
36-
| **Autosave** | Automatically save files after changes. |
37-
| **Format on Save** | Automatically format code when the file is saved. |
38-
| **Live Autocompletion** | Enable real-time code suggestions as you type. |
39-
| **Elastic Tabstops** | Enable elastic tabstop behavior for alignment. |
40-
| **Soft Tab** | Use spaces instead of tab characters. |
41-
| **Tab Size** | Number of spaces per tab. |
42-
| **Text Wrap / Word Wrap** | Enable or disable word wrapping. |
43-
| **Hard Wrap** | Hard wrap lines at a specified column. |
44-
| **Line Based RTL Switching** | Enable right-to-left text handling per line. |
45-
| **Use Textarea for IME** | Use textarea for Input Method Editor (better CJK input support). |
3+
Customize the CodeMirror editor used by Acode.
4+
5+
## Editor Options
6+
7+
| Setting | Description | Allowed Values / Notes | Default |
8+
| :------ | :---------- | :--------------------- | :------ |
9+
| **Autosave** | Auto-save after delay. | `0` (off) or `>= 1000` ms | `0` |
10+
| **Font Size** | Editor text size. | CSS size string (e.g. `12px`) | `12px` |
11+
| **Editor Font** | Font family used in editor. | Any installed editor font | `Roboto Mono` |
12+
| **Line Height** | Line spacing in editor. | `1.0` to `2.0` | `2` |
13+
| **Soft Tab** | Insert spaces instead of tab character. | On/Off | `On` |
14+
| **Tab Size** | Visual/indent tab width. | `1` to `8` | `2` |
15+
| **Show Line Numbers** | Show line number gutter. | On/Off | `On` |
16+
| **Relative Line Numbers** | Show relative numbers from cursor line. | On/Off | `Off` |
17+
| **Lint Gutter** | Show diagnostics markers in gutter (LSP-related). | On/Off | `On` |
18+
| **Format on Save** | Runs selected formatter on save. | On/Off | `Off` |
19+
| **Live Autocompletion** | Suggest completions while typing. | On/Off | `On` |
20+
| **Text Wrap** | Wrap long lines in editor viewport. | On/Off | `On` |
21+
| **Show Spaces** | Show spaces/tabs/trailing whitespace markers. | On/Off | `Off` |
22+
| **Fade Fold Widgets** | Folds gutter icons fade until hover. | On/Off | `Off` |
23+
| **Rainbow Brackets** | Color bracket pairs with nested colors. | On/Off | `On` |
24+
| **Indent Guides** | Show indentation guide lines. | On/Off | `On` |
25+
| **Color Preview** | Inline color swatches for color values. | On/Off | `On` |
26+
| **Cursor Controller Size** | Touch cursor handle size. | `None`, `Small`, `Medium`, `Large` | `Medium` |
27+
| **Line Based RTL Switching** | Per-line right-to-left direction support. | On/Off | `Off` |
28+
| **Hard Wrap** | Legacy option in settings UI. | Currently limited/no-op in CodeMirror flow | `Off` |
29+
30+
## Scroll Settings (Sub-page)
31+
32+
The **Scroll Settings** item opens a sub-page.
33+
34+
| Setting | Description | Values | Default |
35+
| :------ | :---------- | :----- | :------ |
36+
| **Scrollbar Size** | Width/height of editor scrollbars. | `5`, `10`, `15`, `20` px | `20` |
37+
38+
## Notes
39+
40+
- Some old Ace-era options (print margin, elastic tabstops, textarea-for-IME) are no longer active in current CodeMirror editor settings flow.
41+
- **Lint Gutter** visibility is tied to diagnostics UI from active language servers (LSP).

0 commit comments

Comments
 (0)