Файли
openidea/docs/en/guide/settings.mdx
T
LU XIANGRUIтаwildcatDownstairs 3811dfb512 feat(settings): sync the list of installed plugins (#6756)
Adds a Plugins category to Settings Sync. plugins.json maps each computer's random id to the plugins installed in its data directory; every computer writes only its own list, so lists never conflict and an uninstall only shortens one of them. After a sync, plugins other computers have and this one lacks are looked up in the marketplace and offered in a notification under the marketplace's names; ids that are not marketplace ids are dropped. Install... lets the user pick (each goes through the usual install and consent page) and Ignore These Plugins declines them; nothing is installed or uninstalled on its own. An unreadable plugins.json is left untouched.

The hidden plugins.installFromMarket action now accepts a single id (Import Settings) or a list of ids (Settings Sync).

Closes #6750

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:37:35 +08:00

72 рядки
5.8 KiB
Plaintext
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
---
title: "Settings"
description: "Open and search the Settings window, choose between global and project values, and export, import or carry settings to new projects."
---
## Open Settings
- macOS: **OpenIDEA › Settings…** or `⌘,`
- Windows and Linux: **File › Settings…** or `Ctrl+Alt+S`
Settings open in their own window. The tree on the left groups the pages as in IntelliJ IDEA: **Appearance & Behavior**, **Keymap**, **Editor**, **Plugins**, **Version Control**, **Build, Execution, Deployment**, **Languages & Frameworks**, **Tools** and **Security**. Installed plugins can add pages of their own.
To open Settings faster, as a dialog inside the project window, turn off **Appearance & Behavior › Appearance › UI Options › Open Settings in a separate window**.
## Find a setting
Type in the search field above the tree. The tree keeps only the pages that match, and matching option labels are highlighted on the page. Search works in English and in the current display language.
You don't need the Settings window open to search: **Search Everywhere** (`⇧⇧` / `Shift Shift`) and **Find Action** (`⇧⌘A` / `Ctrl+Shift+A`) also list settings, and choosing one opens its page.
## Apply changes
Changes are collected until you click **Apply** or **OK**. **Cancel** discards them. Most changes take effect right away in every open window.
## Global and project settings
Settings have two levels:
- **Global** values apply to every project.
- **Project** values apply to one project and override the global value.
Pages that can hold project values show a **Global** / **This project** switch at the top. With **This project** selected, your changes are saved to `.openidea/settings.toml` in the project and override the global value. Commit that file if your team should share the values.
Some settings are global only, such as the MCP server and HTTP proxy. Project files can never mark a project as trusted; trust decisions stay in your user data (see [Quickstart](/en/guide/quickstart#trust-the-project)).
## Settings for new projects
**File › New Projects Setup › Settings for New Projects…** opens Settings on the global level only, starting at the Java page. New projects inherit these values. Use it for defaults such as the JDK, Maven or language servers that every project should start with.
## Export and import
Under **File › Manage IDE Settings**:
- **Export Settings…** writes your global settings to a JSON file (`openidea-settings.json` by default), together with live templates, file templates, postfix templates, macros, tool window layouts and a few view options.
- **Import Settings…** replaces your global settings with those in an exported file. Restart when asked to apply the imported templates, macros, layouts and view options. Choosing a JetBrains `settings.zip` here imports from a JetBrains IDE instead.
- **Import Settings from JetBrains IDE…** imports from a JetBrains IDE installed on this computer. See [Migrate](/en/guide/migrate#import-settings).
## Settings Sync
**Settings › Settings Sync** keeps your IDE settings in a Git repository you choose, so several computers share them. A secret GitHub Gist works too (use its clone URL), but anyone with the gist's link can read it. Git signs in with your own credentials (SSH keys, a credential helper); OpenIDEA stores none.
1. Enter the **Repository URL** and choose what syncs: appearance and themes, editor, keymaps, templates, macros, tool window layouts and view options, plugins, and other settings.
2. Apply, then click **Sync Now**, or run **File › Manage IDE Settings › Sync Settings Now**.
With **Sync automatically** on (the default), settings also sync on startup and 30 seconds after they change; templates and macros sync on startup and with Sync Now. An automatic sync only notifies you when it brought in settings, kept this computer's value over another's, or failed. It never asks the first-sync question below: it leaves a notification, and Sync Now asks.
Each sync merges setting by setting with the last synced version: a setting changed on one computer only takes that change. When both computers changed the same setting, this computer's value wins and the notification lists it; earlier values stay in the repository's history. The first sync with a repository that already holds settings asks whether to merge them, use the repository's, or use this computer's.
Plugins sync as a list only: each computer records the plugins it has installed. When your other computers have plugins this one lacks and the marketplace offers them, a notification lets you pick which to install, each with its usual consent page. Nothing is installed or uninstalled on its own. A plugin stays offered until you answer: pick from **Install…**, or choose **Ignore These Plugins**. Installing or uninstalling a plugin doesn't start an automatic sync by itself; the list goes with the next sync on startup, after a settings change, or Sync Now.
Never synced: passwords and tokens, environment variables, arguments, commands and paths (interpreters, SDKs, tools, shells), URLs with credentials, proxy, SSH, deployment and run target settings, the download mirror, the MCP server and what agents may run. A list syncs only when nothing in it is one of those, so a CMake profile with its build folder stays on this computer. Syncing never changes this computer's values of any of these.
## Settings files
Settings are stored as TOML: the global values in `settings.toml` in the configuration directory, the project values in `<project>/.openidea/settings.toml`. You can edit them by hand. See the [settings reference](/en/reference/settings) for the file format and keys, and [Data directories](/en/reference/data-directories) for where the global file lives.
## Related pages
- [Keymaps](/en/guide/keymap)
- [Themes and fonts](/en/guide/themes)
- [Display language](/en/guide/locale)