I'm switching from Flash Builder to IDEA, and I've find that there is something I don't have, that is the ability to see the method annotations (/** **/) when you hover over it. I didn't find a way to do it, I just can't see any info regarding that.
Any IDEAs?
My bad, this is not really insellisense related, anyway the solution is this:
"File -> Settings -> Editor, there is a check box called "show quick doc on mouse move""
Found it here: IntelliJ IDEA mouse over method show Java Doc
Related
This sounds like a duplicate post but I tried to find answers to this question online and can't seem to find any helpful information...
I opened several downloaded class files that form one project, and can't seem to run the code. There is no toolbar with the run and debug button and the shortcut (^R) is not working. Right-clicking on the files neither gives the option to execute the code.
Looking at your screenshots (especially #2, the one that show the File menu) it seems to me that you are in the Light Edit mode where the whole IDE pretty much is just an editor.
Switch to the full IDE mode (where you open the actual project) and you will have the full functionality.
https://www.jetbrains.com/help/idea/lightedit-mode.html
I would like to implement something similar to breakpoint or lightbulb notifications in my IntelliJ plugin. Up until now I've been using Inlay which is great but they shift the text next to them. I need something similar that doesn't impact text layout and can still receive user clicks.
It would also be great if I can place such content in the gutter area like real breakpoints.
Unfortunately these things are very hard to search for as the common keywords popup up and cloud the search results.
It seems that what I was looking for are gutter icons: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000164564-Insert-Gutter-icon
Here is what happend in Eclipse. When I am typing a method, I could know the docs.
Invoke the quick documentation action. On mac it's F1 or CTRL+J. Look it up in settings -> keymap to find and/or assign keyboard shortcut for this action.
The details in the rectangular are shown after the action is invoked.
It's also possible to show the quick documentation when moving the mouse cursor on a method. If you want that, go to settings -> editor -> general and check the option Show quick documentation on mouse move and specify the delay you prefer.
IntelliJ IDEA 13 has the new Search Anywhere feature. It sounds like it might be useful, but so far it just gets in the way. It's mapped to some kind of magical shift-based shortcut, and it comes up every time I try to shift-click to select text. When this happens, the pop-up flickers and gets into some stuck state, so the only way to get rid of it is to click in the editor pane, which of course loses the selection.
I call the shortcut "magical" because the Search Everywhere action appears in the Settings → Keymap list with no mapping, so I can't remove this mapping the usual way. Searching the dialog for search gives no relevant results.
How can I disable this buggy feature until it's ready for production use, and get back the ability to select text?
To disable the "Search everywhere" feature, you need to invoke "Go to action" (Ctrl+Shift+A), then type "Registry...".
Scroll down to "ide.suppress.double.click.handler" and check the box.
Source: https://youtrack.jetbrains.com/issue/IDEA-161094
After updating to build 133.331, I tried assigning a normal shortcut to it in Settings → Keymap, and that made it stop appearing on double-shift.
The settings for the new version have changed
Version: IDEA 2021.2.3
Preference > Advanced Settings
Scroll down to "User Interface", find "Disable double modifier key shortcuts" and check the box.
It's called Search Everywhere, and it's present in keymap.
For me it's perfectly disabled.
EDIT As I'v found it is hardcoded now, and will popup at doubleshift source
There is also an issue at jira, about this problem.
I hope it will be fixed soon.
from: https://youtrack.jetbrains.com/issue/IDEA-161094
In IDEA 2021.2:
You could enable the Settings (Preference on macOS) |
Advanced Settings | Disable double modifier key shortcuts option to
disable it.
This problem is still present under linux (ubuntu amd64 16.10 ) on Android Studio using X11Rdp for remote connection, maybe in other situations too - the Search Everywhere dialog appear on single Shift press.
The answer is here
https://youtrack.jetbrains.com/issue/IDEA-114933#comment=27-603899
Basically you need to
Open lib/resources.jar/idea/PlatformActions.xml and remove or comment such line:
<action id="SearchEverywhere" class="com.intellij.ide.actions.SearchEverywhereAction" />
and repack the jar.
Since end of 2017 you can add -Dide.suppress.double.click.handler=true to the custom VM options: cf. the answer from JetBrains.
It really annoys me that IntelliJ highlights certain 'errors' (that don't prevent successful compilation) the same way that real errors are highlighted. For example, a magic number is not really an error, but it will be flagged in exactly the same way as an incompatible type error.
How can I change this?
Go to Settings -> Inspections. Then you need to search through the long list for the offending inspection, which you can get the name of by hovering on the warning marker in the margin. You can change the severity of the inspection, whether it's an error, warning, etc. or just disable it altogether.
Edit: if you search for "magic" in Settings, you get the following, which should be helpful:
Whenever you see an inspection warning/error you can place the caret on it and press Alt+Enter (a light bulb also appears that tells you that). A menu will appear with suggested quick fixes. You may need to open a submenu by pressing Right, and you'll find "Edit inspection settings" there. Having invoked that, you may proceed as in hvgotcodes's answer :), it's just a faster way of getting to those settings.
As Michael Calvin said you can use the SuppressWarnings annotation. For example:
#SuppressWarnings("OptionalUsedAsFieldOrParameterType")
See https://github.com/JetBrains/intellij-community/blob/master/plugins/InspectionGadgets/src/inspectionDescriptions/OptionalUsedAsFieldOrParameterType.html
Usually searching the internet for the exact description leads me to this.
Not directly relevant to the OP, but may be of use to future Googlers
I got to this question while trying to figure out how to disable IntelliJ IDEA's warnings about Guava functionalities that have been replaced by Java 8 features. I'm not able to use the Java 8 versions of these features in my case because of a library we're using that was built with Guava (despite being a Java 8 project). So to solve that, I added a SuppressWarnings annotation before any class using Guava:
#SuppressWarnings(Guava)
public final class...