Settings › Keymap gains Visual Studio and ReSharper presets (Windows/Linux
and macOS), generated from JetBrains' Visual Studio and ReSharper keymaps
with the same parent chain: Visual Studio builds on the IntelliJ preset of
the OS, ReSharper on Visual Studio. Where a preset gives a key to another
action, inherited bindings of context-free actions on that key are dropped
so the key does one thing.
IDEA_ACTIONS gains 64 standard IDEA action ids (Resume, StepOver, FindNext,
CompileDirty, SwitchHeaderSource, …), which also helps imported IDEA
keymaps and IdeaVim's :action, and imported keymaps based on Visual Studio,
ReSharper or NetBeans now pick that preset as their parent.
presetOf picked the macOS preset for any parent whose name contains "mac", including "Emacs", so a keymap derived from IDEA's Emacs keymap was imported as based on macOS. The match is now on the word (Mac OS X, macOS), and Emacs and its copies map to the $default preset they inherit in IDEA.
Refs #6896
Import Settings from a JetBrains IDE now also brings over the keymaps (the IDE's active one becomes current), the terminal font, Tabs and Indents of the current code style scheme, console soft wrap and about 45 more EditorSettings / CodeInsightSettings options. The IDEA keymap parser moves to src/platform so the import can use it, and now accepts the lower-case key names IDEA writes in user keymaps (every non-letter shortcut of a user keymap was dropped before, also in Settings › Keymap › Import).
Closes#3649
Co-authored-by: wildcatDownstairs <[email protected]>