How can I change the keyboard shortcuts for "quick-fix" options in CLion? - keyboard-shortcuts

In CLion, when I hover my mouse over an area highlighed orange, like this:
I get a context menu pop up and tell me how to fix the problem that CLang-tidy has found:
How can I change the keyboard shortcut for actioning the fix from Alt+Shift+Enter to whatever I want? (There doesn't seem to be a way to change these shortcuts from the settings menu.

Related

IntelliJ MacOs keyboard shortcut for checkbox toggle

Many of the commands produce checkboxes. I would like to know of a keyboard shortcut that ticks/unticks a checkbox.
For example CMD+OPT+Z opens the “Rollback Changes” dialog box, using the tab you can scroll to all the files that have changed but I cannot find a way to tick/untick the checkboxes.
Note:This is on a MacOS using IntelliJ 2021.1
Thanks
The Space bar work for me for selecting and deselecting checkboxes in the Rollback Changes dialog.

Toolbar buttons disappeared in IDEA

I am using Intellij Idea 2017.2.4 and two buttons on the bottom toolbar have disappeared. The two buttons are "Run" (Alt+4) and "Debug" (Alt+5). I can find them in the pop-up menu in the bottom left corner of Idea either and pressing Alt+4 and Alt+5 doesn't work even though the default keymap setup has not been changed.
Is there a way to get them back without having to reinstall Idea?
It looks like they re-appear on the bottom toolbar and in the pop-up menu when I right-click a file and select either run or debug. The key bindings work again as well.

Cycle through autocomplete suggestions without arrows

I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.
What I'd like to do, is cycle through the autocomplete suggestions I get when hitting Ctrl + Space without using the arrow keys (↑, ↓).
The reason for this is that I prefer to keep my fingers on the home row (I'm using IntelliJ's Vim emulator additionally).
For example, how would I select sortThis instead of sorted without using the arrow keys or the mouse?
Peter Gromov's answer brought me to a satisfying solution:
In IntelliJ's settings, for Keymap → Editor Actions → Down I set a custom shortcut: Ctrl + J.
This way I can cycle forward through the suggestions.
Setting a shortcut for Down with Selection or Scroll Line Down in the IdeaVim-specific shortcuts did not affect the selection of autocomplete suggestions though.
The answer here: https://stackoverflow.com/a/9713306/2370679 led me to discover that Ctrl+n & Ctrl+p allow navigation of the auto-complete options without having to modify any settings
For macOS the IDE will give a hint that "^↑ and ^↓ will move caret up and down in the editor". These clearly do not work.
There are a few extra steps that are needed after following #matthias-braun's solution.
Here is the full list of step that I use:
Go to Preferences -> Keymap
Expand Editor Actions (not Plug-ins -> IdeaVim)
Select Down
Click the pencil icon or right-click
Select Add Keyboard Shortcut
Press the shortcut (I use ^N)*
Repeat for 3-6 for Up (I use ^P)
Click Ok**
Go to Preferences -> Other Settings -> Vim Emulation
In the drop-down under the Handler column for the row containing Down, select Vim***
Do the same thing for Up
* If you are warned about the key binding already existing then remove it. You can always reset back to the defaults by clicking the little cog icon up the very top to the right of the drop-down menu.
** The Vim Emulation doesn't seem to be populated correctly until you reopen the Preferences.
*** I'm not sure why the Handler should be Vim. This seems backwards to me but it works.
If you're able to scroll up/down in editor with some IdeaVIM-specific shortcuts, they should also work in the completion list.
In this particular case, I'd just type another "t" so that "sortThis" becomes selected (and the only) variant.
I have done the same thing with mapping the arrows but in a more logical way:
I mapped them that when I press 'Alt' 'J' is left, 'L' is right, 'I' is up, and 'k' is down. that way I can have easy access to the arrows while my fingers are on the home row and I don't need to move them nearly as much...
I'm posting it just so people who search it on google can have that idea.

How to disable auto show hints in JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm) on mouse over

How to disable auto show hints in IntelliJ IDEA on mouse over?
Edit:
This hint could be very big if you call existing method with incorrect parameters. It's very uncomfortable.
There are the same behaviour in PyCharm:
and WebStorm:
Those popups (or tooltips) has been my worst annoyance in the editor for a while. There is how I fixed it:
On the editor, at the bottom-right of the window, there is a head icon. Click it and uncheck the box "Import popup".
You can have a look at this guide (with images) to help you finding the checkbox:
http://www.jetbrains.com/idea/webhelp/disabling-inspections.html
I hope that can help you
TOTALLY: Open Settings (or Pereferences, if you are OS X user) dialog, choose Editor | Inspections. On the Mange tab (right pane of the dialog) select Copy. Then click the language node. Here you can find the setion that is probably responsible for your tooltips and disable it. Or disable the whole language node, if you like. This way you have all the IDE features working and no tooltips at all. You can return back to Project Default inspections profile when you need it.
PARTIALLY: Try to disable the respected intention action. Press Alt+Enter when you see the tooltip, select the action from the list and press the right arrow key. In the context menu, select "Disable".
From JetBrains Forum.
You probably need to uncheck the Inlay Hints.
For Windows 10 & PyCharm Community 2020.3.3 :
File > Settings > Editor > Inlay Hints
Uncheck Show hints for:

XCode shortcut key to dismiss warning/error highlights?

Is there a shortcut key to dismiss the lines that get highlighted yellow and red for warnings and errors, instead of having to click one by one on the symbols in the gutter?
I have tried searching but this particular nugget of wisdom isn't easy to find, if indeed it's out there.
Thanks.
The shortcut you're looking for is Control-Command-M which corresponds to Issues->Show All Issues in Xcode's Key Bindings settings menu. You can change this shortcut to what ever you'd like, and it will toggle wether or not error messages will be visible on screen.
I don't know if you already tried that or if that's what you're searching, but there is the menu "Editor" -> "Issues" -> "Hide all issues" command that maybe can be useful