Importing IntelliJ IDEA classic keymap into VS Code in MacOS - visual-studio-code

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.

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>

Related

Key mappings for Visual Studio Code

I'm quite accustomed to the key mappings used in TextWrangler and other editors and I'd like to migrate those mappings into VS Code.
Is it possible to import key mappings from external applications in VS Code?
(Wild card: Failing the above question, does anyone publish key mapping files for VS Code?)
You can install a Keymap extension that brings the keyboard shortcuts from your favorite editor to VS Code.
Go to Preferences > Keymap Extensions to see the current list on the Marketplace.
Reference:
https://code.visualstudio.com/docs/getstarted/tips-and-tricks

Eclipse Text Editor Behaviour under Linux

I use Eclipse Luna 4.4.0 under Ubuntu 14.04.1 LTS. When I edit a file (especially a Java file), then the editor has a vi-like behaviour with a command and edit mode. But I want the same editor behaviour as under Windows which is like Notepad(++), without a command mode.
I couldn't find any key settings under Windows -> Preferences -> General -> Keys. There's a default scheme, a "vim's key bindings" scheme and an emacs scheme, but there seems to be no difference between the default and the vim scheme. And, additionally, I couldn't find any way to export Windows' editor preferences and to import them under Linux.
Is there any way to solve my problem? Or do we have this different behaviour due to platform-dependent implementation?
I guess, you have Vrapper or a different plug-in installed that provides these key bindings. If you don't want to have these features, try to uninstall them (select Help -> About from the menu, then click on Installation Details button on the bottom of the About dialog, where you can look for any possible culprits, and uninstall them.

Is there an IntelliJ Keymapping plugin for Eclipse?

I am an old IntelliJ user, now working on a project that requires Eclipse.
I don't mind learning the Eclipse default keyboard shortcuts where they exist, but so many operations don't have shortcuts assigned (grrrr!)
I was wondering if there is any plugin that would automatically assign the IntelliJ defaults to any action that does not already have a mapping?
As an alternative I guess I could also use a plugin that just wipes out all of the Eclipse defaults and replaces them with the IntelliJ versions.
Or do I have to just go and manually replace them all one by one :( ?
The IdeaKeyScheme plugin was just developed by one guy that wanted the same thing. Source and binary are available. I haven't tried it myself, but many people use it with great success. It seems to be the only thing out there.
If you're concerned about keyboard mappings, the Key Promoter plugin for Eclipse (known as MouseFeed) will be a big help, too. There's also an IntelliJ version. I highly recommend this plugin for productivity enhancement.
Installation and enabling IdeaKeyScheme plugin
For Eclipse: add jar file to eclipse/dropins/plugins folder.
Restart Eclipse.
Open Window → Preferences → General → Keys and select the scheme "Intellij Idea".
I wanted the same thing since I predominantly use IntelliJ IDEA. Found this on the eclipse market place and up to now it has the same keymappings.
Activate it by going to :
Window >> Preferences >> General >> Keys : change the scheme to : IntelliJ IDEA
https://marketplace.eclipse.org/content/intellij-idea-keymap-eclipse
You may add a key map as described here:
http://www.jroller.com/santhosh/entry/intellij_idea_key_scheme_for
The plugin itself is:
http://jroller.com/santhosh/resource/IdeaKeyScheme.jar
You need just to put the jar file into eclipse/plugins and restart IDE. It works on Luna just fine!
Open your eclipse software
Drag and drop Installer button from
https://marketplace.eclipse.org/content/intellij-idea-keymap-eclipse
in your always open eclipse
and that's all
It turns out that in IntelliJ, by default you can choose a keymap scheme. So you can just apply the Eclipse Shortcuts without any plugin.
Just press CTRl + `
Details here
http://zeroturnaround.com/rebellabs/getting-started-with-intellij-idea-as-an-eclipse-user/4/

Aptana Studio messed up my default editor settings in Eclipse

Since I installed the 'stand-alone' Aptaba Studio, my Eclipse wants to open certian files, e.g. "MSG.utf", in Aptana Studio.
Note that I never installed the Aptaba Plugin.
And even after uninstalling Aptana as documented (i.e. just moving the Application Folder to the trash, in OS X), the settings are noct changed back. Instead, Eclipse now does not open these files at all anymore. So:
1) Why has Aptana Studio messed up my Eclipse settings?
2) What other file types /Ednings and other settings might be affected?
3) How can I change this back to normal/before?
Preferences->General->Editors->File Associations
Here you can set which file types open with which editors, internal and external, and also set defaults.
Try modifying the entry/adding an entry of utf files with the editor you want to open.
Install this plug-in: http://eclipse-color-theme.github.com/update and you, Aptana and your Eclipse layouts will forever be happy!

How do I switch on emacs keys in Eclipse?

If I go to Window -> Preferences -> General -> Keys, change the scheme to "Emacs", and click apply, nothing happens.
I'm using Eclipse 3.6.1 on Fedora 14. Is there something I'm missing or is this just broken? Is there a workaround that doesn't involve manually entering all of the shortcuts?
While I don't know about the built in Emacs keys, I do enjoy using Emacs+ for Eclipse: http://www.mulgasoft.com/emacsplus.
The keybindings mechanism in Eclipse occasionally gets confused. Briefly, you have to convince Eclipse to reset the bindings to the default before re-enabling your desired binding scheme. A description of the procedure (that works most of the time) can be found at: http://www.mulgasoft.com/emacsplus/keybinding.
Some users have found that they need to restart Eclipse more frequently than is outlined in the procedure...