File formats
Ferris IDEA keeps what it writes in files you can read: TOML for settings and project files, JSON for state it remembers for you. The tables on this page are generated from the JSON Schemas the program itself publishes, which a test keeps equal to the code.
How the files are built
Section titled “How the files are built”Every TOML file Ferris IDEA writes starts with a table that says what it is:
[ferris-idea]kind = "theme" # what the file holdsformat = 1 # the version of that formatname = "Light" # optional, like id, author, licence, homepage, min_version
[theme]name = "Ferris IDEA Light"Ferris IDEA reads every format up to its own and migrates older ones as it reads them. A file from a
newer version is refused with the format it found: written by a newer Ferris IDEA (format 2); this version reads theme files up to format 1. An import reports every problem at once, each with its key
path. Files without a [ferris-idea] table count as format 0 and are still read; the first time
Ferris IDEA writes the new form, it keeps the old file once as <name>.bak.
To have your editor check a file, put a schema comment on its first line. TOML language servers such as Taplo understand it:
#:schema https://raw.githubusercontent.com/DamienDrash/ferris-idea/main/docs/formats/run.schema.jsonWhere the files are
Section titled “Where the files are”| File | Kind | Where | Written by |
|---|---|---|---|
settings.toml |
IDE settings | settings folder | the Settings dialog |
keymaps/FerrisIDEA.toml |
keymap | settings folder | Settings › Keymap |
window-layouts.json |
window layouts | settings folder | Window › Layouts |
trusted-projects.toml |
trusted locations | settings folder | the trust question, ferris-idea trust |
agent-permissions.toml |
agents’ rights per workspace | settings folder | you, or Always for This Workspace |
.ferris-idea/bookmarks.toml |
bookmarks | project | bookmarks |
.ferris-idea/breakpoints.toml |
breakpoints | project | the debugger |
.ferris-idea/run.toml |
run configurations ([[run]], each like run) |
project | the run configuration editor |
.ferris-idea/connections.toml |
database connections | project | the Database tool window |
*.idcsettings, *.idckeymap, *.idctheme, *.idcrun, *.idcsources |
exchange files | anywhere | Export commands, the MCP tool export_file |
The settings folder is $FERRIS_IDEA_CONFIG_DIR, else $XDG_CONFIG_HOME/ferris-idea, else
~/.config/ferris-idea, on macOS as on Linux. The .ferris-idea/.gitignore that Ferris IDEA writes
keeps machine-local files of the project (local history, recent files, the agent log, breakpoints,
editor tabs, terminal sessions) out of Git; bookmarks and run configurations can be committed.
Exchange files
Section titled “Exchange files”Exchange files are made to be passed on. Opening one, by double-click, by dropping it on the window,
with File › Manage IDE Settings › Import Settings… or with ferris-idea open <file>, shows what it
holds and what it would change; nothing changes until you confirm. ferris-idea open --print <file>
prints the same and changes nothing. Files over 64 KiB are refused. A file renamed to .toml, such
as mine.idckeymap.toml, is read too.
Exports leave out passwords and references to stored passwords, agent rights, environment variables named like secrets, paths outside the project, and the AI, MCP and terminal settings.
| Kind | Extension | Import |
|---|---|---|
settings |
.idcsettings |
Works |
keymap |
.idckeymap |
Works |
theme |
.idctheme |
Works |
run |
.idcrun |
Works |
sources |
.idcsources |
Works |
connector, code-style, live-templates, plugin |
.idcconnector, .idcstyle, .idctemplates, .idcplugin |
Planned |
Settings
Section titled “Settings”.idcsettings, from File › Manage IDE Settings › Export Settings…. A [keymap] table is included
when you changed shortcuts.
| Argument | Type | Description |
|---|---|---|
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 1 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "settings" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
keymap | object | The user keymap. |
keymap.actions | object | Shortcuts by action id: "control alt S", "control K, control C", "mouse: …", "gesture: dblClick shift SHIFT"; an empty array removes them. |
keymap.namerequired | string | Keymap name. |
keymap.parent | string | Bundled keymap it changes. |
settingsrequired | object | IDE settings. |
settings.appearance | object | Appearance settings. |
settings.appearance.compact_mode | boolean | |
settings.appearance.dark_theme | string | |
settings.appearance.editor_scheme | string | The editor colour scheme; empty for the theme's own (SPEC-0337). |
settings.appearance.ide_zoom | integer | The zoom of every window in percent, 50 to 200 (SPEC-0061). |
settings.appearance.light_theme | string | |
settings.appearance.startup_animation | boolean | The startup animation while start-up work runs (SPEC-0355). |
settings.appearance.sync_with_os | boolean | |
settings.appearance.theme | string | The chosen theme. |
settings.code_style | object | Code style. |
settings.code_style.indents | object | Indents by language. |
settings.code_style.right_margin | integer | |
settings.code_style.show_right_margin | boolean | |
settings.editor | object | Editor settings. |
settings.editor.code_authors | boolean | |
settings.editor.config_values | boolean | |
settings.editor.ensure_line_break_at_end | boolean | |
settings.editor.fold_imports | boolean | |
settings.editor.fold_one_line_methods | boolean | |
settings.editor.folding_arrows | one of | When the folding arrows in the gutter are shown (default: hover).values: "always", "hover" |
settings.editor.font_family | string | Editor font. |
settings.editor.font_size | number | Font size in pixels. |
settings.editor.grammar | object | Scope of the grammar and spelling checks (SPEC-0155 v8). |
settings.editor.grammar.commit_messages | boolean | Check commit messages. |
settings.editor.grammar.file_types | object | Scope per file type (status-bar name, e.g. Java, Plain text). |
settings.editor.highlight_usages_at_caret | boolean | |
settings.editor.ligatures | boolean | Font ligatures (off by default). |
settings.editor.line_spacing | number | Line height factor. |
settings.editor.parameter_hints | boolean | |
settings.editor.semantic_highlighting | boolean | |
settings.editor.spelling_dictionary | string | |
settings.editor.strip_trailing_spaces | boolean | |
settings.editor.tabs | object | Editor Tabs (SPEC-0059 v9). |
settings.editor.tabs.activate_on_close | one of | values: "left", "right", "recent" |
settings.editor.tabs.close_button | one of | values: "right", "left", "none" |
settings.editor.tabs.close_button_on_all | boolean | |
settings.editor.tabs.limit | integer | Most tabs per group, 1–100. |
settings.editor.tabs.limit_rule | one of | values: "close_unchanged", "close_unused" |
settings.editor.tabs.mark_modified | boolean | |
settings.editor.tabs.open_at_end | boolean | |
settings.editor.tabs.path_tooltip | boolean | |
settings.editor.tabs.pinned_row | boolean | |
settings.editor.tabs.placement | one of | values: "top", "none" |
settings.editor.tabs.preview_tab | boolean | |
settings.editor.tabs.rows | one of | values: "scroll", "squeeze", "wrap" |
settings.editor.tabs.show_extension | boolean | |
settings.editor.tabs.show_folder_for_equal_names | boolean | |
settings.editor.tabs.show_icon | boolean | |
settings.editor.tabs.sort_alphabetically | boolean | |
settings.editor.usage_counts | boolean | |
settings.editor.usage_counts_above | boolean | |
settings.intentions | object | Intentions (SPEC-0076 v11). |
settings.intentions.disabled | array of string | Titles of the intentions turned off in the context actions. |
settings.notifications | object | Notifications (SPEC-0337). |
settings.notifications.log_info | boolean | Keep informational notes in the Notifications tool window (on by default). |
settings.project_view | object | The project tree (SPEC-0275 v10). |
settings.project_view.compact_middle_packages | boolean | Packages that hold only one sub-package share its row (on by default). |
settings.system | object | System Settings (SPEC-0337). |
settings.system.confirm_quit | boolean | Ask before quitting (off by default). |
settings.system.reopen_last_project | boolean | Open the last project at start-up (on by default). |
settings.system.save_on_frame_deactivation | boolean | Save files when the window loses the focus (off by default). |
settings.vcs | object | Version control settings. |
settings.vcs.allow_force_push | boolean | |
settings.vcs.protected_branches | string | |
settings.vcs.update_method | one of | values: "merge", "rebase" |
Keymap
Section titled “Keymap”.idckeymap, and your own keymap keymaps/FerrisIDEA.toml. Each action lists its shortcuts; an empty
list removes them. How to write a shortcut: Keymaps and shortcuts.
[ferris-idea]kind = "keymap"format = 1name = "Ferris IDEA"
[keymap]name = "Ferris IDEA"parent = "Mac OS X 10.5+"
[keymap.actions]ReformatCode = ["meta alt L"]SaveAll = []| Argument | Type | Description |
|---|---|---|
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 1 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "keymap" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
keymaprequired | object | The keymap. |
keymap.actions | object | Shortcuts by action id: "control alt S", "control K, control C", "mouse: …", "gesture: dblClick shift SHIFT"; an empty array removes them. |
keymap.namerequired | string | Keymap name. |
keymap.parent | string | Bundled keymap it changes. |
.idctheme names one of the bundled themes and whether compact mode is on. It does not define
colors.
[ferris-idea]kind = "theme"format = 1name = "Ferris IDEA Dark"
[theme]name = "Ferris IDEA Dark"compact_mode = false| Argument | Type | Description |
|---|---|---|
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 1 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "theme" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
themerequired | object | The theme. |
theme.compact_mode | boolean | Compact mode (SPEC-0165). |
theme.namerequired | string | A bundled theme, e.g. "Ferris IDEA Light". |
Run configuration
Section titled “Run configuration”.idcrun holds one [run]; the project’s .ferris-idea/run.toml holds any number as [[run]].
[ferris-idea]kind = "run"format = 1
[run]name = "Tests"command = ["cargo", "test"]kind = "test"report = "libtest"| Argument | Type | Description |
|---|---|---|
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 1 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "run" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
runrequired | object | The run configuration. |
run.before | array of string | Configurations to run first. |
run.command | array of string | Program and arguments; may be empty with url. |
run.cwd | string | Working directory, relative to the workspace. |
run.env | object | Extra environment variables. |
run.kind | one of | A program or tests with a report.values: "run", "test" |
run.namerequired | string | Unique name. |
run.report | one of | Report format of a test configuration.values: "libtest", "tap", "junit" |
run.report_file | string | JUnit file written by the tool, relative to the workspace. |
run.timeout | integer | Timeout in seconds.minimum 1 |
run.url | string | A page to open (http:// or https://). |
Data sources
Section titled “Data sources”.idcsources carries database connections without any secret: the user and the password are
entered on the receiving side.
| Argument | Type | Description |
|---|---|---|
connectionrequired | array of object | The data sources. |
connection[].database | string | Database name. |
connection[].dialectrequired | string | Protocol family: postgresql, mysql, mariadb, sqlserver, oracle, sqlite, duckdb. |
connection[].host | string | Server host. |
connection[].idrequired | string | Id of the connection. |
connection[].namerequired | string | Name shown. |
connection[].path | string | Database file, relative to the workspace. |
connection[].port | integer | Server port.minimum 1 · maximum 65535 |
connection[].read_only | boolean | Open read-only. |
connection[].ssl | one of | TLS mode.values: "disable", "prefer", "require", "verify-ca", "verify-full" |
connection[].system | string | Connector id (SPEC-0300). |
connection[].user | string | User name. |
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 1 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "sources" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
Project files
Section titled “Project files”Bookmarks
Section titled “Bookmarks”.ferris-idea/bookmarks.toml, read again within a second when it changes on disk.
[ferris-idea]kind = "bookmarks"format = 1
[[bookmark]]file = "src/cart.rs"line = 42mnemonic = "A"description = "rounding"| Argument | Type | Description |
|---|---|---|
bookmark | array of object | Line bookmarks, newest first. |
bookmark[].description | string | One line, at most 200 characters. |
bookmark[].filerequired | string | File, relative to the project, / between the parts. |
bookmark[].linerequired | integer | 1-based line.minimum 1 |
bookmark[].mnemonic | string | One of 1-9, 0, A-Z; unique in the project. |
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 0 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "bookmarks" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
Breakpoints
Section titled “Breakpoints”.ferris-idea/breakpoints.toml: every breakpoint with its condition, hit count, log message and
suspend rules.
| Argument | Type | Description |
|---|---|---|
breakpoint | array of object | Line breakpoints. |
breakpoint[].condition | string | Stop only when this is true. |
breakpoint[].enabled | boolean | false: kept but not set. |
breakpoint[].filerequired | string | File, relative to the workspace. |
breakpoint[].hit_condition | string | Pass count. |
breakpoint[].linerequired | integer | 1-based line.minimum 1 |
breakpoint[].log_message | string | Log instead of stopping. |
breakpoint[].rules | object | Further options (SPEC-0127 v3). |
breakpoint[].rules.caller_filter | string | Only when called from these methods. |
breakpoint[].rules.class_filter | string | Only in these classes. |
breakpoint[].rules.depends_keep | boolean | Stay active after that hit. |
breakpoint[].rules.depends_on | string | Inactive until this breakpoint (file:line) is hit. |
breakpoint[].rules.instance_filter | string | Only for these object ids. |
breakpoint[].rules.log_hit | boolean | Log that the breakpoint was hit. |
breakpoint[].rules.log_stack | boolean | Log the call stack. |
breakpoint[].rules.remove_once_hit | boolean | Remove after the first hit. |
breakpoint[].rules.suspend | one of | Which threads stop; none logs and goes on.values: "all", "thread", "none" |
ferris-idearequired | object | |
ferris-idea.author | string | Who wrote the file. |
ferris-idea.formatrequired | integer | Format version; older ones are migrated when read.minimum 0 · maximum 1 |
ferris-idea.homepage | string | Web page of the file (https://); shown, never fetched. |
ferris-idea.id | string | Stable id chosen by the author. |
ferris-idea.kindrequired | constant | The kind of file.always "breakpoints" |
ferris-idea.licence | string | SPDX licence expression. |
ferris-idea.min_version | string | Oldest Ferris IDEA version the author expects. |
ferris-idea.name | string | Name shown in the import preview. |
State files
Section titled “State files”State files hold what Ferris IDEA remembers for you. They are JSON with a version, not made to be
shared. A state file from a newer version is neither read nor overwritten.
Window layouts
Section titled “Window layouts”window-layouts.json in the settings folder: your saved tool window layouts
(Files, tabs and structure).
Unknown keys and unknown tool windows are ignored when it is read; a file that cannot be read is
kept as .bak.
| Argument | Type | Description |
|---|---|---|
active | string | Name of the selected layout; missing means the default layout. |
layouts | array of object | The saved layouts.maxItems 50 |
layouts[].active_window | string | Id of the tool window that had the keyboard focus; one of shown. |
layouts[].layout | object | The arrangement, in the form of .ferris-idea/tool-windows.json (SPEC-0167). |
layouts[].layout.stripes | boolean | Whether the stripes are shown. |
layouts[].layout.version | integer | Version of the tool window layout form. |
layouts[].layout.windows | array of object | The tool windows in stripe order. |
layouts[].layout.windows[].bounds | array of integer | Last frame as a Float or Window window: x, y, width, height.minItems 4 · maxItems 4 |
layouts[].layout.windows[].idrequired | string | Tool window id, e.g. project, terminal. |
layouts[].layout.windows[].mode | one of | View mode other than docked and pinned.values: "docked", "unpinned", "undocked", "float", "window" |
layouts[].layout.windows[].removed | boolean | No stripe button. |
layouts[].layout.windows[].siderequired | one of | values: "left", "bottom", "right" |
layouts[].layout.windows[].size | integer | Width (left, right) or height (bottom) in pixels, if the user set one.minimum 0 |
layouts[].layout.windows[].split | boolean | The second half of the side. |
layouts[].namerequired | string | 1 to 64 characters without / and \ and control characters, not "Default"; unique when capitals are ignored.minLength 1 · maxLength 64 |
layouts[].shown | array of string | Ids of the shown tool windows. |
versionrequired | integer | Format version; a file of a newer version is not read and not overwritten.minimum 1 · maximum 1 |