将 IntelliJ IDEA 经典键盘映射导入 MacOS 中的 VS Code

发布于 2025-01-12 18:28:43 字数 855 浏览 4 评论 0原文

我在 IntelliJ IDEA classic 键盘映射中自定义了一些快捷键。我想将所有这些快捷方式导入 VS-Code,因为有时我必须使用这两个 IDE。

我在 VS-Code 中安装了一个插件,可以轻松提供键盘映射 JSON 文件。但我找不到当前的 IntelliJ 键盘映射文件 JSON 文件。

我没有找到此处提到的名为 keymaps 的文件夹 -> https://www.jetbrains.com/ help/idea/configuring-keyboard-and-mouse-shortcuts.html#custom_keymap_location

我已经导入键盘映射到 VS-Code 中。但正如我所说,我在默认的 IntelliJ IDEA classic 键盘映射之上进行了一些自定义。所以,我显然错过了这些捷径。

OS: Darwin x64 21.1.0
VS-Code : 1.65.0
IntelliJ Ultimate Version: 2021.2.1

任何帮助将不胜感激。

I have customized some shortcuts in the IntelliJ IDEA classic keymap. I want to import all those shortcuts into VS-Code as sometimes I have to use both IDEs.

I have installed a plugin in VS-Code to easily provide a keymap JSON file. But I can't find my current IntelliJ keymap file JSON file.

I do not find a folder called keymaps as mentioned here -> https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html#custom_keymap_location

I already imported this keymap into VS-Code. But as I stated I have some customizations I have done on top of the default IntelliJ IDEA classic keymap. So, I'm clearly missing those shortcuts.

OS: Darwin x64 21.1.0
VS-Code : 1.65.0
IntelliJ Ultimate Version: 2021.2.1

Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

囍笑 2025-01-19 18:28:43

尝试从 ~/Library/Application Support/JetBrains/IntelliJIdea2021.3/settingsRepository/repository/keymaps/ 查找,而不是 ~/Library/Application Support/JetBrains/IntelliJIdea2021.3/keymaps/< /code>

在那里您可能会找到自定义键盘映射的 XML 设置。

如果该文件夹不存在,是否意味着 Jetbrains 可能已覆盖您的自定义键盘映射?你能检查一下吗?

Jetbrains 仅将自定义键盘映射文件作为默认键盘映射之上的附加设置。 IE。如果我复制 macOS 默认键盘映射并编辑一些,keymap.xml 中将会有一个条目

<keymap name="..." parent="macOS" >
...
</keymap>

Try looking from ~/Library/Application Support/JetBrains/IntelliJIdea2021.3/settingsRepository/repository/keymaps/ instead of ~/Library/Application Support/JetBrains/IntelliJIdea2021.3/keymaps/

There you might find the XML settings of your custom keymaps.

If the folder is not there, does that mean Jetbrains might have overridden your custom keymaps? Could you check?

Jetbrains only put a custom keymap file as additional settings on top of the default keymap. ie. If I copy a macOS default keymap and edit some, there would be an entry in the keymap.xml

<keymap name="..." parent="macOS" >
...
</keymap>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文