Keyboard shortcut to display error in IntelliJ - intellij-idea

I like to use my mouse as little as possible for health reasons. Almost all the common tasks in IntelliJ I can do via keyboard shortcuts, except for displaying the message of an error. How can I have a keyboard shortcut that will show the tooltip of the highlighted error?
For example, I have an error such as:
Then I hit [magic-keyboard-command] and I get:
In Eclipse this is possible by pressing F2. Is there an equivalent in IntelliJ?

The standard Error Description shortcut for JetBrains tools is Ctrl+F1 (Cmd+F1 on Mac).

I use F2 on the mac, it cycles round all the errors in a single file and displays the error information for each.
In addition, to find all project errors what I do is this:
cmd+2 - go to error list (this might be different for diff languages)
press enter key
make change to fix bug
back to step 1 (sometimes escape key will help also)

Related

Krusader: using Alt+D as a shortcut

In Krusader, I want to use Alt-D as a shortcut to focus the location bar. This works fine for browsers and Dolphin. When I set the shortcut for "Go To Location Bar" to "Alt-D", setting the shortcut has no errors. When I try to use the shortcut, I get an error popup saying that the key sequence 'Alt+D' is ambiguous.
Note that I have to hit 'Alt+D' twice to get the error. This makes me think that I'm colliding with the 'Alt+D' consumed by Plasma.
What can I do to get Krusader to do what Dolphin, Firefox, and Chromium do?
It is not possible by now. This is known bug of Krusader. In Ubuntu 20.04 the same problem is reproducing.
In Krusader keys combination Alt + letter or digit is used to navigate through UI (menu items, buttons, tabs, navigation path items). So Alt + D is pointing to something in it.
There are many bug reports with the similar problem on Krusader bugtracker. May be one day this will be fixed. Links to the bugs:
Ambiguous shortcut (Alt + R)
cant use shortcuts (Alt+E) which conflict mnemonics
Alt+letter keyboard shortcuts conflict with accelerators
alt+letter shortcuts are overriden by main menu shortcuts
Alt-shortcuts dont work with secondary layout

How do I copy and paste the tooltip error message that pops up in IntelliJ IDEA?

IntelliJ IDEA automatically shows a red line if it cannot resolve some entities or it detects an error. Is there a way to copy and paste the content of that tooltip?
With eclipse I use the f2 to get the information.
I used the idea version 14.1.4 and use this way to copy the tooltips.
You can click the error line and the info will display, now you can right click to copy this error info.
Mouse shortcut:
Hover mouse over error in editor to bring up tooltip
Alt + click on error message inside tooltip to copy it to clipboard
For step 1 you can also bring up the tooltip for the current carret position by Ctrl + F1. For step 2 there does not seem to exist a keyboard shortcut at the time of writing (for IntelliJ 2018.1), see also IDEA-65636.
If you stumbled upon looking for solution for Linux version (and none of the above worked for you, like for me) click ctrl+alt+left mouse button on the tooltip, and you'll get its content into the clipboard :)
No, the tooltips don't offer a way to get that information from their context alone.
You could traditionally compile it instead via Build -> Compile and get the error message that way, instead. You can then select this text and do with it what you wish.
There is a bug report on this since 2011 (!) . Feel free /encouraged to vote for having the bug fixed:
https://youtrack.jetbrains.com/issue/IDEA-65636
IDEA-65636 I can't copy text from tooltip, though I can select it
Though honestly JetBrains infrequently gets around to non super critical bug fixes.

keyboard command to focus on erroneous text in IntelliJ IDE

In eclipse when you hover over some erroneous text you can press F2 to focus there. What is the equivalent procedure in IntelliJ?
Whenever I put my pointer over some error the text describing it disappears.
In Eclipse it will suggest what I can do to fix something like an unhandled IO exception. I'm sure IntelliJ can also do this because some people I know who are quite skillful programmers highly recommended it to me, but- how to do this?
That is: hover over some text at is in error, see what the error is, the options to fix it, and then choose one.
If you click on the highlighted part of code, the error description will appear in a pop-up bubble as well as in statusbar.
You can then hit ALT+Enter which will offer you some options to handle the given error/warning or to disable the warning.
The actions you are looking for is called "Error Description" and "Show Intention Actions".
⌘+F1 (Ctrl+F1 on non-mac) will show the error info on based on where the caret is.
Alt+Enter will show the Intention Actions available based of the location of the caret.

IntelliJ IDE (IDEA, PhpStorm, WebStorm): Shortcut for focusing Filter field in e.g. Change Log tool window

Is there a shortcut for focusing the Filter box in tool windows, specifically the Change Log?
See the attached screenshot to know which field I'm talking about. I searched the net and key map, but found nothing like that.
I have confirmed at Jetbrains that unfortunately it's not possible yet: http://devnet.jetbrains.com/message/5520523#5520523
Just start typing with the focus inside the tool window. IDEA invokes the search automatically. To select the item, press Enter. To cancel, press Esc.
This feature is called Tool Window Speed Search.

Rename using suggested var name with resharper

I'm Using resharper 6 nighty builds and VB.net. I've a big medium project with multiple files that don't follow the code style conventions of my company.
I've configured resharper with my own convenctions and It suggest to me the right name for each variable (perfect!).
But I can't find any automagic way to make the current name to be replaced with the suggested name.
Are there any way to do it? If not ... did you know ane fearure of coderush Xpress to achieve it?
Thanks.
If you've configured ReSharper with your naming conventions, then it should show a warning (blue squiggly underline) under any identifiers that don't comply. If you put the text cursor on one of those misnamed identifiers, you should see a pyramid icon appear near the left margin. Then you can press Alt+Enter (or click the pyramid icon) to drop down a quick-fix menu. There should be an option in the menu to "Rename to '_myField'". Usually it's the first item in the list, so you can just press Enter again to do the rename.
If you want to do this on everything in a source file, you can use the ReSharper > Inspect > Next Issue in File command (or its keyboard shortcut -- F12 in the IDEA keymap) to move the cursor to the next warning in the file. Then, if it's another name warning, you can use Alt+Enter, Enter again to fix it.
Unfortunately, there isn't a way to automatically fix every instance of a warning at once (though it's been requested; please feel free to vote for RSRP-126551 in their issue tracker).