Is there a way to disable the regex expression highlight in Intellij?
IntelliJ IDEA 2020.3 (Community Edition)
You may disable default injection settings for Kotlin in "Settings/Preferences | Editor | Language Injections - "Kotlin - RegExp" "
Related
I have been using VSCode for Java development for past 1 year. But now, I want to use Intellij for my work. In VSCode, I changed some shortcuts such as endOfLine to ALT+F, startOfLine to ALT+D and they are working fine. But In Intellij, I changed these commands exactly same as in my VSCode but instead of working, these shortcuts are triggering options in the top bar like File, Edit, View etc.
Is there any way by which I can give preference to my custom keymaps over default keymaps in Intellij. Please note that I want to use only ALT key with my custom keymaps.
Disable these options:
Settings (Preferences on macOS) | Appearance & Behavior | Appearance | Enable mnemonics in menu
Settings (Preferences on macOS) | Appearance & Behavior | Appearance | Enable mnemonics in controls
Alt + letter shortcuts are commonly used for mnemonics.
I was wondering if it was possible to have Intellij code inspection recognise "instanceof" and mark it as correct.
The code i provided in the picture works, I just want to stop Intellij from drawing the red line
Picture of the code
You can ignore and supress inspections for Intellij from the Settings menu.
Settings/Preferences dialog (Ctrl+Alt+S), select Editor | Inspections.
Or you can supress/disable inspections by selecting the statement and pressing Alt + Enter and then pressing Disable inspection (if this is provided) . You can read the official documentation from Intellij.
You can find the full list of Java inspections for Intellij here.
I just switch to IntelliJ from Eclipse.
Let's you know, I already know to find all project's source in IntelliJ is Ctrl-Shift-F.
When I use eclipse, if I want to find a string like "accessVariable = configuration" and I just know 2 word "access" and "configuration", I just need to type "access*configuration".
Any things like that in IntelliJ?
Enable Regex checkbox and use .*: access.*configuration.
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
I'm just swapping from eclipse to IntelliJ, and I can't find this particular feature.
In Eclipse, when the cursor is inside the brackets of a method-call and I press Ctrl+Space, it tells me which parameters this method takes. Is there something similiar in IDEA?
Use Ctrl+P (Cmd+P for Mac), it should show something similar.
You may also find the reference card (PDF) handy.
Except CTRL+P (or CMD+P for Mac)
There is new feature in IntelliJ IDEA EAP:
Parameter name hints
Settings > Editor > General > Appearance
preview:
Video from JetBrains about this feature: https://youtu.be/ZfYOddEmaRw
Related question - IntelliJ shows method parameter hints on usage - How to disable it
I'm using:
IntelliJ IDEA 2016.3 EAP
Build #IU-163.5219.11, built on September 27, 2016
Yes - just press CTRL-P.
Display the parameter-helper automatically, by adjusting the "Autopopup"-timer in IntelliJ / PhpStorm settings.
Navigate to:
File -> Settings -> Editor -> General -> Code Completion -> Autopopup in (ms)
Set it to whatever you like. Etc. 5 ms.
Ctrl+P if the keybinding is set to "default".