The SonarLint plugin for Intellij gives warnings for TODOs as well.
By default Intellij highlights TODOs and displays them in a Commit Dialog as well. SonarLint highlighting it again is redundant.
Also, it suppresses one useful feature of Intellij - Intellij highlights TODOs with blue colour which is easier to recognize and scroll to.
Because of the SonarLint plugin, this feature is suppressed. So, I want to disable sonarlint warnings for to-do items only. How can I do that?
Regarding the highlighting issue: You need to go to Settings > Editor > SonarLint, then click on "Info issue", disable "Inherit values from" and set your preferred error stripe mark.
AFAIK, you can not ignore rules using the SL (SonarLint) plugin alone.
In order to do so, you must connect to a SQ (SonarQube) server.
The SQ server allows you not only to ignore all the instances of a single rule, but rather to ignore specific instances and allow other instances to appear.
In your case you would simply be disabling the RSPEC-1135 rule.
References:
https://groups.google.com/forum/#!topic/sonarlint/Hfen0FcDteg
https://www.sonarlint.org/intellij/howto.html
Sonar category of TODO warnings
https://sqa.stackexchange.com/questions/24734/how-to-deactivate-a-rule-in-sonarqube
Related
I'm talking about getting the same effect you get when you commit/merge/diff and are reviewing your changes.
I would like to have code I added to be highlighted. Right now if you go under VCS, Editor Gutter and VCS annotations, both of them have Foreground disabled. I was wondering if there was a way around this.
There is an IntelliJ plugin called Git Scope that provides the functionality you are looking for.
You can install it by going to Settings > Plugin > Marketplace and searching for "Git Scope".
This is not possible without an additional plugin (see the other answer). With any plugins, your current VCS changes are shown with markers in the gutter.
In WebStorm I can type something like
document.gEBI
press tab key, and it'll autocomplete to
document.getElementById()
But when I do the similar thing in IntelliJ
fmt.Prl
Auto completion doesn't work (the desired result fmt.Println()) at all, it works only if all the letters match strictly in order.
Is it possible to enable this functionality in IntelliJ? I've imported all the settings from WebStorm.
These Tab key shortcuts aren't part of the auto-complete system the Jetbrains use for all their IDEs as LazyOne says, they are actually part of the template-invocation system.
The auto-complete functionality is built into the shortcut: Ctrl+Space.
I suggest looking up the template invocation for .Println() in the settings, Jetbrains documentation, or raising a ticket with Jetbrains on YouTrack for clearer documenation/control over template-invocation.
I am curious, how can I disable the following inspection of JavaScript in my IntellJ IDEA?
Possible iteration over unexpected (custom / inherited) members, probably missing hasOwnProperty check
I tried to find the inspection in the settings as described here:
https://www.jetbrains.com/help/idea/2016.1/disabling-and-enabling-inspections.html
but I was unsuccessful.
I believe the inspection you're looking for is in the Inspections list under "JavaScript / General / Unfiltered for..in loop". You can uncheck it in the Inspections in Settings to disable that inspection.
As with all inspections, make sure you understand what it's trying to tell you before just disabling it globally.
Is there a way to completely turn off all intentions light bulbs in Intellij 2016.1, so that none ever appear? In older versions, you could apparently edit options/editor.xml, but no such file exists in 2016.1.
I just answered that in hide Intellij Idea yellow light bulb
TL;DR:
Preferences > Appearance > Show intention bulb
Update:
In GoLand 2020.1 (and possibly all InteliJ 2020.1 products) this setting can be found here:
Editor > General > Appearance > Show intention bulb
If that doesn't work for you, type "bulb" in the search field in the Settings. I hope that helps.
Maybe this could help you
https://www.jetbrains.com/help/idea/2016.1/configuring-intention-actions.html?origin=old_help
To configure intention settings using the Settings dialog
By default, all available intention actions that ship with IntelliJ IDEA, are enabled. By changing the Intention Settings, you can disable the actions that are not required for your current working environment.
Open the Settings / Preferences Dialog by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for OS X, and click Intentions under Editor.
In the Intentions page, clear the check boxes of the intention actions or action categories that you do not currently need.
Selecting or clearing a category affects all intention actions in this category.
Apply changes and close the dialog.
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.