跳转到内容

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.

Every TOML file Ferris IDEA writes starts with a table that says what it is:

[ferris-idea]
kind = "theme" # what the file holds
format = 1 # the version of that format
name = "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.json
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 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

.idcsettings, from File › Manage IDE Settings › Export Settings…. A [keymap] table is included when you changed shortcuts.

ArgumentTypeDescription
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 1 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "settings"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.
keymapobjectThe user keymap.
keymap.actionsobjectShortcuts by action id: "control alt S", "control K, control C", "mouse: …", "gesture: dblClick shift SHIFT"; an empty array removes them.
keymap.namerequiredstringKeymap name.
keymap.parentstringBundled keymap it changes.
settingsrequiredobjectIDE settings.
settings.appearanceobjectAppearance settings.
settings.appearance.compact_modeboolean
settings.appearance.dark_themestring
settings.appearance.editor_schemestringThe editor colour scheme; empty for the theme's own (SPEC-0337).
settings.appearance.ide_zoomintegerThe zoom of every window in percent, 50 to 200 (SPEC-0061).
settings.appearance.light_themestring
settings.appearance.startup_animationbooleanThe startup animation while start-up work runs (SPEC-0355).
settings.appearance.sync_with_osboolean
settings.appearance.themestringThe chosen theme.
settings.code_styleobjectCode style.
settings.code_style.indentsobjectIndents by language.
settings.code_style.right_margininteger
settings.code_style.show_right_marginboolean
settings.editorobjectEditor settings.
settings.editor.code_authorsboolean
settings.editor.config_valuesboolean
settings.editor.ensure_line_break_at_endboolean
settings.editor.fold_importsboolean
settings.editor.fold_one_line_methodsboolean
settings.editor.folding_arrowsone ofWhen the folding arrows in the gutter are shown (default: hover).values: "always", "hover"
settings.editor.font_familystringEditor font.
settings.editor.font_sizenumberFont size in pixels.
settings.editor.grammarobjectScope of the grammar and spelling checks (SPEC-0155 v8).
settings.editor.grammar.commit_messagesbooleanCheck commit messages.
settings.editor.grammar.file_typesobjectScope per file type (status-bar name, e.g. Java, Plain text).
settings.editor.highlight_usages_at_caretboolean
settings.editor.ligaturesbooleanFont ligatures (off by default).
settings.editor.line_spacingnumberLine height factor.
settings.editor.parameter_hintsboolean
settings.editor.semantic_highlightingboolean
settings.editor.spelling_dictionarystring
settings.editor.strip_trailing_spacesboolean
settings.editor.tabsobjectEditor Tabs (SPEC-0059 v9).
settings.editor.tabs.activate_on_closeone ofvalues: "left", "right", "recent"
settings.editor.tabs.close_buttonone ofvalues: "right", "left", "none"
settings.editor.tabs.close_button_on_allboolean
settings.editor.tabs.limitintegerMost tabs per group, 1–100.
settings.editor.tabs.limit_ruleone ofvalues: "close_unchanged", "close_unused"
settings.editor.tabs.mark_modifiedboolean
settings.editor.tabs.open_at_endboolean
settings.editor.tabs.path_tooltipboolean
settings.editor.tabs.pinned_rowboolean
settings.editor.tabs.placementone ofvalues: "top", "none"
settings.editor.tabs.preview_tabboolean
settings.editor.tabs.rowsone ofvalues: "scroll", "squeeze", "wrap"
settings.editor.tabs.show_extensionboolean
settings.editor.tabs.show_folder_for_equal_namesboolean
settings.editor.tabs.show_iconboolean
settings.editor.tabs.sort_alphabeticallyboolean
settings.editor.usage_countsboolean
settings.editor.usage_counts_aboveboolean
settings.intentionsobjectIntentions (SPEC-0076 v11).
settings.intentions.disabledarray of stringTitles of the intentions turned off in the context actions.
settings.notificationsobjectNotifications (SPEC-0337).
settings.notifications.log_infobooleanKeep informational notes in the Notifications tool window (on by default).
settings.project_viewobjectThe project tree (SPEC-0275 v10).
settings.project_view.compact_middle_packagesbooleanPackages that hold only one sub-package share its row (on by default).
settings.systemobjectSystem Settings (SPEC-0337).
settings.system.confirm_quitbooleanAsk before quitting (off by default).
settings.system.reopen_last_projectbooleanOpen the last project at start-up (on by default).
settings.system.save_on_frame_deactivationbooleanSave files when the window loses the focus (off by default).
settings.vcsobjectVersion control settings.
settings.vcs.allow_force_pushboolean
settings.vcs.protected_branchesstring
settings.vcs.update_methodone ofvalues: "merge", "rebase"

.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 = 1
name = "Ferris IDEA"
[keymap]
name = "Ferris IDEA"
parent = "Mac OS X 10.5+"
[keymap.actions]
ReformatCode = ["meta alt L"]
SaveAll = []
ArgumentTypeDescription
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 1 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "keymap"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.
keymaprequiredobjectThe keymap.
keymap.actionsobjectShortcuts by action id: "control alt S", "control K, control C", "mouse: …", "gesture: dblClick shift SHIFT"; an empty array removes them.
keymap.namerequiredstringKeymap name.
keymap.parentstringBundled 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 = 1
name = "Ferris IDEA Dark"
[theme]
name = "Ferris IDEA Dark"
compact_mode = false
ArgumentTypeDescription
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 1 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "theme"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.
themerequiredobjectThe theme.
theme.compact_modebooleanCompact mode (SPEC-0165).
theme.namerequiredstringA bundled theme, e.g. "Ferris IDEA Light".

.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"
ArgumentTypeDescription
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 1 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "run"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.
runrequiredobjectThe run configuration.
run.beforearray of stringConfigurations to run first.
run.commandarray of stringProgram and arguments; may be empty with url.
run.cwdstringWorking directory, relative to the workspace.
run.envobjectExtra environment variables.
run.kindone ofA program or tests with a report.values: "run", "test"
run.namerequiredstringUnique name.
run.reportone ofReport format of a test configuration.values: "libtest", "tap", "junit"
run.report_filestringJUnit file written by the tool, relative to the workspace.
run.timeoutintegerTimeout in seconds.minimum 1
run.urlstringA page to open (http:// or https://).

.idcsources carries database connections without any secret: the user and the password are entered on the receiving side.

ArgumentTypeDescription
connectionrequiredarray of objectThe data sources.
connection[].databasestringDatabase name.
connection[].dialectrequiredstringProtocol family: postgresql, mysql, mariadb, sqlserver, oracle, sqlite, duckdb.
connection[].hoststringServer host.
connection[].idrequiredstringId of the connection.
connection[].namerequiredstringName shown.
connection[].pathstringDatabase file, relative to the workspace.
connection[].portintegerServer port.minimum 1 · maximum 65535
connection[].read_onlybooleanOpen read-only.
connection[].sslone ofTLS mode.values: "disable", "prefer", "require", "verify-ca", "verify-full"
connection[].systemstringConnector id (SPEC-0300).
connection[].userstringUser name.
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 1 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "sources"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.

.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 = 42
mnemonic = "A"
description = "rounding"
ArgumentTypeDescription
bookmarkarray of objectLine bookmarks, newest first.
bookmark[].descriptionstringOne line, at most 200 characters.
bookmark[].filerequiredstringFile, relative to the project, / between the parts.
bookmark[].linerequiredinteger1-based line.minimum 1
bookmark[].mnemonicstringOne of 1-9, 0, A-Z; unique in the project.
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 0 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "bookmarks"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.

.ferris-idea/breakpoints.toml: every breakpoint with its condition, hit count, log message and suspend rules.

ArgumentTypeDescription
breakpointarray of objectLine breakpoints.
breakpoint[].conditionstringStop only when this is true.
breakpoint[].enabledbooleanfalse: kept but not set.
breakpoint[].filerequiredstringFile, relative to the workspace.
breakpoint[].hit_conditionstringPass count.
breakpoint[].linerequiredinteger1-based line.minimum 1
breakpoint[].log_messagestringLog instead of stopping.
breakpoint[].rulesobjectFurther options (SPEC-0127 v3).
breakpoint[].rules.caller_filterstringOnly when called from these methods.
breakpoint[].rules.class_filterstringOnly in these classes.
breakpoint[].rules.depends_keepbooleanStay active after that hit.
breakpoint[].rules.depends_onstringInactive until this breakpoint (file:line) is hit.
breakpoint[].rules.instance_filterstringOnly for these object ids.
breakpoint[].rules.log_hitbooleanLog that the breakpoint was hit.
breakpoint[].rules.log_stackbooleanLog the call stack.
breakpoint[].rules.remove_once_hitbooleanRemove after the first hit.
breakpoint[].rules.suspendone ofWhich threads stop; none logs and goes on.values: "all", "thread", "none"
ferris-idearequiredobject
ferris-idea.authorstringWho wrote the file.
ferris-idea.formatrequiredintegerFormat version; older ones are migrated when read.minimum 0 · maximum 1
ferris-idea.homepagestringWeb page of the file (https://); shown, never fetched.
ferris-idea.idstringStable id chosen by the author.
ferris-idea.kindrequiredconstantThe kind of file.always "breakpoints"
ferris-idea.licencestringSPDX licence expression.
ferris-idea.min_versionstringOldest Ferris IDEA version the author expects.
ferris-idea.namestringName shown in the import preview.

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.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.

ArgumentTypeDescription
activestringName of the selected layout; missing means the default layout.
layoutsarray of objectThe saved layouts.maxItems 50
layouts[].active_windowstringId of the tool window that had the keyboard focus; one of shown.
layouts[].layoutobjectThe arrangement, in the form of .ferris-idea/tool-windows.json (SPEC-0167).
layouts[].layout.stripesbooleanWhether the stripes are shown.
layouts[].layout.versionintegerVersion of the tool window layout form.
layouts[].layout.windowsarray of objectThe tool windows in stripe order.
layouts[].layout.windows[].boundsarray of integerLast frame as a Float or Window window: x, y, width, height.minItems 4 · maxItems 4
layouts[].layout.windows[].idrequiredstringTool window id, e.g. project, terminal.
layouts[].layout.windows[].modeone ofView mode other than docked and pinned.values: "docked", "unpinned", "undocked", "float", "window"
layouts[].layout.windows[].removedbooleanNo stripe button.
layouts[].layout.windows[].siderequiredone ofvalues: "left", "bottom", "right"
layouts[].layout.windows[].sizeintegerWidth (left, right) or height (bottom) in pixels, if the user set one.minimum 0
layouts[].layout.windows[].splitbooleanThe second half of the side.
layouts[].namerequiredstring1 to 64 characters without / and \ and control characters, not "Default"; unique when capitals are ignored.minLength 1 · maxLength 64
layouts[].shownarray of stringIds of the shown tool windows.
versionrequiredintegerFormat version; a file of a newer version is not read and not overwritten.minimum 1 · maximum 1