vscode-intellij-idea-keybindings icon indicating copy to clipboard operation
vscode-intellij-idea-keybindings copied to clipboard

is it possible to import myown custom keymap from Intellij Idea to vscode?

Open epm-dev-priporov opened this issue 6 years ago • 15 comments

I didn't find such opportunity, so that will be very usefull ability

epm-dev-priporov avatar Jul 26 '18 14:07 epm-dev-priporov

Hi @epm-dev-priporov ,

That's a really great idea! Let me challenge it in the future.

Memo:

  1. Export (IntelliJ)
    1. Configure
    2. Export Settings
    3. Key Maps
    4. Save settings.jar
  2. Import (VSCode)
    1. View Command Palette...
    2. Select IntelliJ: Import key maps from IntelliJ

kasecato avatar Jul 28 '18 04:07 kasecato

Hi! Any updates here? :) Maybe we can start with importing configs from keymaps/Mac OS X copy.xml? Which can be found in jar archive (which can be extracted manually for starters).

kell18 avatar May 23 '19 15:05 kell18

An option that worked for me was to go directly to Settings > Keymaps and search for "IntelliJ". Then I installed the map used in IntelliJ. I guess it's limited if you had customized keymap in the IntelliJ and just want to export it.

krzywiecki avatar Apr 16 '20 16:04 krzywiecki

Hi @epm-dev-priporov ,

That's a really great idea! Let me challenge it in the future.

Memo:

  1. Export (IntelliJ)

    1. Configure
    2. Export Settings
    3. Key Maps
    4. Save settings.jar
  2. Import (VSCode)

    1. View Command Palette...
    2. Select IntelliJ: Import key maps from IntelliJ

Is there any update?

zpng avatar Sep 01 '20 13:09 zpng

@kasecato people are waiting for that enhancement) any news?)

epm-dev-priporov avatar Sep 01 '20 18:09 epm-dev-priporov

I would also love to have this feature. I posted it to the Bountysource.

myhau avatar Jan 15 '21 19:01 myhau

Support for multi-stroke shortcuts would be awesome too 🙂🚀.

myhau avatar Jan 16 '21 19:01 myhau

@epm-dev-priporov @kell18 @krzywiecki @zpng @myhau I just released the importer of IntelliJ IDEA keymap settings on v1.0.0. (macOS only) Please try it. This is experimental release, so if you have any problems or requests, please create a new issue. https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings#intellij-importer-experimental-macos-only

kasecato avatar Jan 23 '21 13:01 kasecato

Hmm. @kasecato, I got this error: image

Here is my keymap.xml.

ijoseph avatar Jan 23 '21 17:01 ijoseph

@ijoseph Thank you for your report. Seems like we should extract the zip file.

  1. rename: keymap.xml => keymap.zip
  2. extract: keymap.zip
  3. open: keymap/keymaps/Emacs copy.xml Screen Shot 2021-01-24 at 11 07 44 AM

I'll improve the usage in README.md that we have to extract the settings.zip or the importer can read the zip directly in the future.

kasecato avatar Jan 24 '21 02:01 kasecato

Oh I see, the “.xml” file is actually a zip file. Tricksy hobbitses. Admittedly I may have added that extension manually by mistake in the past and PyCharm’s export may have just remembered it.

Anyway I will try this later today again, thanks again @kasecato .

ijoseph avatar Jan 24 '21 05:01 ijoseph

@ijoseph I noticed something in the Emacs copy.xml you gave me, for example, some basic key mappings like cut and paste were missing. Please wait for the release of 1.0.1, today.

Also, IntelliJ's keymap settings only outputs key changes, so if we output based on emacs, the default emacs bindings will not be reflected because of it not exported in xml. So, I will also write about it as known issues. Thank you.

kasecato avatar Jan 24 '21 05:01 kasecato

This sounds like a great feature, but.. apologies if this is me missing something obvious but how do I find my IntelliJ keymaps? The VSCode Intellij Idea Keybindings extensions very thoughtfully opens a file selection dialogue box but I've no idea where to look 😬

gaggle avatar Mar 22 '21 21:03 gaggle

@gaggle Check this out - https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#import-export-settings

Note: you may select only keymap and unselect other settings that you don't wish to export

vivekmore avatar Mar 23 '21 22:03 vivekmore

nice idea

Aaaaaaron avatar Jun 29 '21 03:06 Aaaaaaron