Files
helder/docs/guide/configuration.md
T
2026-10-05 11:10:12 +02:00

153 lines
8.1 KiB
Markdown

# Configuration
Helder's settings belong to a project. They live in a `.helder` folder in the project root, as plain JSON files you edit in any editor, Helder included.
[Guide index](index.md) · Related: [Window layout](layout.md), [Keyboard shortcuts](keyboard-shortcuts.md), [Claude Code](claude-code.md), [Command line](command-line.md)
## At a glance
```text
my-project/
+-- .helder/ (1)
| +-- config.json (2) your settings, only what you change
| +-- config.default.json (3) every setting with its default
| +-- .gitignore (4) keeps the folder out of git
| +-- recent.json (5) recently opened files
+-- .notes.txt (6) the project note
+-- .env (7) APP_NAME sets the project title
```
1. **`.helder` folder**: Helder creates it when you open the project.
2. **`config.json`**: your own settings. You create it. Put in only the keys you want to change.
3. **`config.default.json`**: the full list of settings and their defaults. Helder rewrites it each time the project opens.
4. **`.gitignore`**: ignores the whole `.helder` folder, because its content is local to your machine.
5. **`recent.json`**: the list behind the recent files navigator. See [Go to file](go-to-file.md).
6. **`.notes.txt`**: the project note. See [Notes](notes.md).
7. **`.env`**: Helder reads only `APP_NAME` from it, for the project title.
## Features
### `config.json` and `config.default.json`
- **`config.default.json`** is documentation. Read it to see every setting. Helder rewrites it from its built-in defaults every time the project opens, so it always matches your Helder version. Edits to it are lost and never read.
- **`config.json`** is yours. Copy only the keys you want to change. Leave the rest out.
- Helder merges the two key by key. A key in `config.json` wins. A missing key uses the default.
- A key with a wrong type, or `null`, keeps its default. The rest of the file still works.
- A file that is not valid JSON is ignored as a whole, and every setting uses its default.
Example `config.json`:
```json
{
"editor": { "autoSave": true, "tabSize": 2 },
"git": { "defaultDiffMode": "diff" },
"files": { "exclude": ["vendor/**", "node_modules/**"] }
}
```
### When changes take effect
- Helder watches `config.json`. Save it and the change applies right away to the editor, git prompts, the default diff mode and the terminal look (font, colours, cursor).
- `files.*` changes apply to the next search, and to the tree the next time it reloads. Press `Cmd+R` to reload it now.
- A few settings are read when the project opens: `ai.command`, `ai.autoLaunch`, `terminal.shell` and `git.refreshInterval`. Reopen the project, or open another one and come back, to apply them.
### Project title
- The project title is the `APP_NAME` value from the project's `.env` file, when it has one. Quotes around the value are removed.
- Without `APP_NAME`, the title is the folder name.
- The title shows in the Dock, in `Cmd+Tab` and in the Dock's right-click menu. See [Window layout](layout.md).
### Session restore
- With `session.restoreOnLaunch` on, a project reopens on the file you had open, in the same view (code or Markdown preview).
- A file that was in the full-screen Diff reopens on the live file.
- The column layout (which columns show, Fluid on or off, the locked widths) always comes back, whatever this setting says. See [Window layout](layout.md).
### Things that are not settings
- There is no theme and no light mode. Helder is dark only.
- The code font and size are built in. Use zoom (`Cmd++`, `Cmd+-`, `Cmd+0`) to change the size of the code and terminal text.
- **Hidden** files (`Cmd+.`) and **Fluid** widths (`Cmd+L`) are toggles in the [title bar](title-bar.md), not settings.
## Settings
### ai: the Claude pane
| Setting | Default | Effect |
|---|---|---|
| `ai.command` | `"claude"` | The command the Claude pane runs when the project opens |
| `ai.autoLaunch` | `true` | Run `ai.command` when the project opens. When off, the Claude pane starts as a plain shell |
### editor: the File view
| Setting | Default | Effect |
|---|---|---|
| `editor.autoSave` | `false` | Save edits on their own 0.6 seconds after the last keystroke, without a "Saved" toast. Opening another file saves silently instead of asking |
| `editor.tabSize` | `4` | Spaces per indent step for `Tab` and `Shift+Tab`. Helder indents with spaces |
| `editor.wordWrap` | `"markdown"` | Fold long lines: `"off"` never, `"on"` always, `"markdown"` only in Markdown files. The Diff never wraps |
### git: the Git column
| Setting | Default | Effect |
|---|---|---|
| `git.confirmDiscard` | `true` | Ask before Discard changes |
| `git.confirmStage` | `false` | Ask before staging a file |
| `git.confirmUnstage` | `false` | Ask before unstaging a file |
| `git.defaultDiffMode` | `"updated"` | How a changed file opens: `"updated"` on the live file, `"diff"` in the full-screen Diff |
| `git.refreshInterval` | `10000` | Milliseconds between automatic git status checks. `0` turns the check off. File watching still works |
### files: the Explorer and search
| Setting | Default | Effect |
|---|---|---|
| `files.exclude` | `[]` | Glob patterns to leave out of the Explorer and search, for example `"vendor/**"` |
| `files.followGitignore` | `false` | Also leave out files that git ignores. Off by default, so files like `.env` stay visible |
### terminal: both terminal panes
| Setting | Default | Effect |
|---|---|---|
| `terminal.shell` | `null` | The shell for both panes. `null` uses your login shell (`$SHELL`) |
| `terminal.fontFamily` | `null` | Terminal font. `null` uses the built-in IBM Plex Mono |
| `terminal.fontSize` | `null` | Terminal font size in points. `null` uses Helder's default size |
| `terminal.lineHeight` | `1.7` | Line height, as a multiple of the font size |
| `terminal.letterSpacing` | `0` | Extra space between letters |
| `terminal.cursorStyle` | `"bar"` | Cursor shape: `"bar"`, `"block"` or `"underline"` |
| `terminal.cursorBlink` | `true` | Blink the cursor |
| `terminal.boldIsBright` | `false` | Show bold text in the bright colour. Off keeps bold text in its own colour |
| `terminal.scrollback` | `8000` | Lines kept in the scroll history |
| `terminal.optionIsMeta` | `false` | Use `Opt` as the Meta key, for tools that need `Opt+Return`. When on, `Opt` no longer types accents and `Opt+Left/Right` no longer jump by word |
| `terminal.theme` | Helder dark | The terminal colours, see below |
### terminal.theme: terminal colours
Every value is a CSS colour string, such as `"#E8913A"` or `"rgba(232,145,58,0.22)"`. Set only the ones you want to change.
| Setting | Default | Effect |
|---|---|---|
| `background` | `#101720` | Pane background |
| `foreground` | `#E4E7E6` | Normal text |
| `cursor` | `#E8913A` | Cursor colour |
| `cursorAccent` | `#101720` | Text under a block cursor |
| `selectionBackground` | `rgba(232,145,58,0.22)` | Selection in the focused pane |
| `selectionInactiveBackground` | `rgba(232,145,58,0.12)` | Selection in a pane without focus |
| `black` / `brightBlack` | `#232C39` / `#6C7783` | ANSI black |
| `red` / `brightRed` | `#C4741F` / `#E8913A` | ANSI red |
| `green` / `brightGreen` | `#8FBFB4` / `#A6D2C7` | ANSI green |
| `yellow` / `brightYellow` | `#F0B476` / `#F5C79A` | ANSI yellow |
| `blue` / `brightBlue` | `#8FA9C4` / `#A9BFD6` | ANSI blue |
| `magenta` / `brightMagenta` | `#C3A6CE` / `#D6BFDF` | ANSI magenta |
| `cyan` / `brightCyan` | `#8FC4C4` / `#A9D6D6` | ANSI cyan |
| `white` / `brightWhite` | `#BAC0C0` / `#F4F5F4` | ANSI white |
### session
| Setting | Default | Effect |
|---|---|---|
| `session.restoreOnLaunch` | `true` | Reopen the last open file and its view when the project opens |
## Related
- [Window layout](layout.md): what Helder remembers outside these files.
- [Claude Code](claude-code.md): the pane `ai.*` controls.
- [Command line](command-line.md): the shell pane `terminal.*` controls.
- [Git](git.md): the prompts and refresh that `git.*` controls.
- [Explorer](explorer.md) and [Search](search.md): what `files.*` leaves out.
- [File view](file-view.md): what `editor.*` controls.
- [Diff view](file-view-diff.md): `git.defaultDiffMode`.