Keymaps and shortcuts
此内容尚不支持你的语言。
Ferris IDEA ships the keymaps of IntelliJ-based IDEs: the default keymap on Linux and the macOS keymap on a Mac. Your own changes are kept in a small file on top of them. Keymaps and recording shortcuts: Works.
Find a shortcut
Section titled “Find a shortcut”- On this site: Keyboard shortcuts lists every shortcut for both systems; you can search by name or press keys to find the action.
- In the window: Help › Find Action… (⇧⌘A, CtrlShiftA) shows each action with its shortcut. Choosing an action runs it.
- In Settings › Keymap: type in the search field. It matches the action’s name, its id and its shortcut; case, spaces, dots and underscores do not matter.
Which keymap you get
Section titled “Which keymap you get”| System | Keymap | Name in files |
|---|---|---|
| macOS | the macOS keymap of IntelliJ-based IDEs, with a few changes | Mac OS X 10.5+ |
| Linux | the default keymap of IntelliJ-based IDEs | $default |
There is no keymap chooser: the keymap follows the system. Keymaps of other editors (VS Code, Emacs, Eclipse) are not offered. If you come from IntelliJ IDEA, PyCharm or another IDE of that family with its default keymap, your shortcuts work as you know them.
The macOS keymap adds 23 shortcuts to the original, each with a reason: keys that the original IDE
declares in its plugins rather than in the keymap (Commit ⌘K, Push
⇧⌘K), a second key where macOS or a German keyboard layout takes the
first (⌥Esc for completion), and free keys for actions that had none. The list
with the reasons is crates/ui/keymaps/macos-deviations.json in the
source.
Change a shortcut
Section titled “Change a shortcut”- Open Settings › Keymap (or the gear button in the toolbar, then Keymap…).
- Find the action: type part of its name. Then click its row, or press Tab to move into the list.
- Press ↩. The row says Press a key…; press the new shortcut. It is added to the action’s shortcuts. Esc cancels.
- To remove the selected shortcut, press Delete (⌫). To go back to the shipped shortcuts of the action, press ⇧Delete.
The change applies at once in every window and is saved to keymaps/FerrisIDEA.toml in your
settings folder, which holds only the actions you changed. Recording takes one keystroke; mouse
shortcuts and two-stroke chords such as ⌘K, ⌘C are written
into the file by hand:
[ferris-idea]kind = "keymap"format = 1
[keymap]name = "Ferris IDEA"parent = "Mac OS X 10.5+"
[keymap.actions]ReformatCode = ["meta alt L", "meta K, meta F"]SaveAll = []An empty list removes every shortcut of the action. The notation: modifiers shift, control,
alt and meta (⌘) before the key, a comma between two strokes. All keys of the file:
File formats.
Conflicts
Section titled “Conflicts”When the keystroke you record is used by other actions, the row says which ones. Nothing is removed for you: decide which action keeps the keystroke and remove it from the others.
On macOS, some chords never reach an application because the system keeps them: ⌃Space
and ⌃⌥Space (input sources), ⌘Space and
⌥⌘Space (Spotlight), ⌘Tab, ⇧⌘3
to 5 (screenshots), and ⌃ with an arrow key (Mission Control). The keymap marks
such shortcuts with a dimmed note, for example
⌃Space is taken by macOS (the previous input source). Code completion, which the original keymap
puts on ⌃Space, therefore also has ⌥Esc.
Share or reuse a keymap
Section titled “Share or reuse a keymap”Your keymap travels in the settings exchange file
(Move your settings), or alone
as a .idckeymap file. Open such a file to see what it changes and import it.
Shortcuts
Section titled “Shortcuts”| Action | Shortcut |
|---|---|
| File › Settings | ⌘,CtrlAltS |
| Navigate › Action | ⇧⌘ACtrlShiftA |
| Navigate › Search Everywhere | ⇧then⇧ShiftthenShift |
For agents
Section titled “For agents”keymap_lookup answers which keys an action has, or which action a keystroke runs, in the shipped
keymaps and in yours. Changing a shortcut needs the settings right.
keymap_lookupLook up the bundled keymaps (the reference IDE's default keymap for Windows/Linux, or macOS) or the user's keymap (user): shortcuts of an action, or actions bound to a keystroke such asalt Jorcontrol MULTIPLY, 1.set_shortcutChange the user's keymap as Settings › Keymap does (needs thesettingsright: the keymap holds for every project): give an action exactly the given shortcuts (keymap notation; an empty list removes them) or restore its bundled shortcuts withreset.
No tool matches. Try fewer words, or .