Intellij is good at providing different keymaps. I particularly like the emacs key bindings and so CTRL-S is bound to "Edit -> Find -> Find ..." which opens up a text slot at the top left and incrementally searches while I type.
Is it possible to remap the key bindings used when this is active? I would in particular like to tweak it to behave more like emacs' isearch-forward. As an example, the arrow keys should just exit the find mode.
Related
I am currently using IDEAVim on intelliJ on a 60% keyboard without arrow keys.
I am looking for a way to expand the menu of "Show Intentions Action"(the menu which you get from hitting + ) to the right without having to use the arrow key.
If i just hit enter, it will select and execute the intention instead of giving me a menu to "Suppress" or "Ignore" the intention
You cannot remap any cursor keys for the menu actions in IntelliJ IDEA.
The only workaround I can see if to use some system application to remap the keys depending on the OS you are using. For example, on Windows one can map some keys combination to produce the arrow key code with AutoHotkey or a macro in the third-party keyboard driver settings.
Anything that will produce the same code as the real right arrow key on your system should work.
Is it possible to use J and K when choosing a suggested auto-completion item? See the image below: I'd like to, maybe hold ALT or SHIFT (or in some other way differentiate between moving and typing), and use J and K to select the proper suggestion.
Is anything similar also available for moving around the menus (in Project view etc.)?
I was able to make this work by creating a shortcut ALT+J mapped to the Down key and ALT+K to the Up key.
You can move up and down in the popup without needing to move your hand away from HJKL to the arrow keys.
This also works in the Find in path window, though it does not work in the navigation menu.
Update: For Alt + K to work in the Find window since the version 2020+, one has to disable mnemonics in Settings, under Appearance & Behaviour -> Appearance -> Disable mnemonics in controls.
#Rok Povsic's solution is great and I used it a bit, but in some pop up menus like Intention actions, refactoring menu or usages the trick won't work.
So I used this Power Toys program from Microsoft to remap the Alt+J, Alt+K, Alt+H, Alt+L to arrow keys at windows level and now this works great everywhere around the IDE.
You can even specify only the app in which you want to override this shortcuts. For example for rider it will be "rider64.exe". You can find the name of the app you want to use in task manager under "Details".
I'm using Intellij IDEA 2017.1.4 (Community Edition). How do I dismiss the file structure view (Navigate > File Structure)? I've been hitting the esc with no results; it stays there until I either choose an item in the list or click elsewhere with my mouse pointer (which is very inconvenient to me).
My problem was due to the esc being used as primary keyboard shortcut for a few other keyboard shortcuts. I'm using Emacs keybindings and I think they were set there by default. The escape function was mapped to esc+esc, which I already knew. To resolve this issue, I looked for all shortcuts whose primary key was esc, and remove that particular binding (or replaced them with something I'm more comfortable with). I also updated the mapping of escape to only use single key press.
I actually also set another binding to the escape functionality, ctrl+G, which also doesn't work to dismiss the file structure view. I think within the context of file structure view, the IDE follows a slightly different set of keybindings so no matter what I map to the escape functionality, it will only honor the single key press of esc.
I want to find the keybinding for "Sync Files in REPL".
I can find the keybinding for this action in:
File -> Settings -> Keymap -> CLojure Keybinding -> Bind Set: Cursive
I see that the keybinding for this action is Ctrl+Shift+M. However, when I use this keybinding, nothing happens. Do you have any idea why and how to use the keybinding?
I ran into the same issue. This github issue explains it:
The Clojure->Keybindings panel isn't where you make general changes to
the key mappings for actions - you'll find that in the generic
IntelliJ Keymap panel. The Keybindings panel is for setting a bunch of
key mappings in bulk - it's something you'll only do probably once
when you're initially setting Cursive up. For changing mappings for
particular actions after that point, you'll use the Keymap panel.
If you look in KeyMap (not Clojure Keybindings), make a new keymaps profile (or copy one of the existing ones), and the go to Plug-ins -> Cursive -> Sync files in REPL. The key binding specified there should work (unless of course you have it set to something that conflicts with something else).
In IntelliJ 12, how do I make the popup stop...popping up when I hold Ctrl while hovering over a field/method with the mouse? (see picture)
That is the "Brief Info" action (or at least that is what it is called in the Keymap reference.) To the best of my knowledge (i.e. 10+ years of daily IDEA use including all beta/EAP builds), there is no way to turn it off. Searching the settings for either "Brief Info" or "Info" does not show any pertinent setting. Likewise, searching key mappings for the same does not reveal a mapping. In fact in the keymap settings, you can only map mouse clicks, not mouse pointing (i.e. hovering). You can submit a feature request asking for a setting to disable this feature.
Just put of curiosity, why do you want to disable it? I guess I would never see a case where one would Ctrl+MousePoint unless they wanted to see this. The only case I can think of would be if you disliked it popping up when you go to Ctrl+Click on a symbol. If it is the latter, note that you can use Ctrl+B in place of Ctrl+MousePoint
Try turning off the "autopop" options under /Settings/IDE Settings/Editor/Code Completion.