So I've pressed Do not show this dialog in the future (screenshot taken from the web).
It's been a while and now I want to change default reformat behavior.
I can't seem to find an option to show this dialog again.
Update 2015/10:
In current versions of IntelliJ (and likely Android studio and other IntelliJ based IDEs) there no longer seems to be this option as it is not needed.
⌘+Alt+L no longer shows the dialog, instead it directly reformats the file and gives you a hint that you can display the dialog using ⌘+Alt+Shift+L. That dialog no longer includes Do not show again option.
For older IntelliJ versions these dialogs can be re-enabled in Settings/Editor/General:
Newer versions of IntelliJ or Android studio the dialogs can be found under Settings/Editor in Formatting section
Related
Despite that I have ticked the "auto-display documentation" and tried inputting different numbers in "ms" box - I still have to press CTRL+Q to see the documentation. How to make it work?
Also if I click CTRL+Q to show documentation pop up manually - the pop up is too small. Can I make it bigger by default to contain all the text?
IntelliJ IDEA 2018.1 (Ultimate Edition) Build #UI-181.4203.550
Linux Mint 18.3 Sylvia, Cinnamon 64-bit
Sounds like you want this setting:
Settings > Editor > General
> Show quick documentation on mouse move
And to make the documentation pop-up text larger:
Click the gear icon in the top-right corner of the pop-up, there is a setting there.
It seems there is a bug. If you open the settings via the gear icon and tick the show toolbar it will work again (at least I was able to reproduce it and this fixed it for me).
I don't have issues with the size (I'm on mac) using IntelliJ IDEA 2018.1.2 (Ultimate Edition) Build #IU-181.4668.14.
You can create an issue on their issue tracker here: https://youtrack.jetbrains.com/issues/IDEA.
For more info about reporting issues, see: https://www.jetbrains.com/help/idea/reporting-issues.html
Update for IntelliJ 2018.2:
The code completion in IntelliJ IDEA continues to evolve, and now the IDE shows both all the possible auto-completions and Javadoc, at the same time (without the need to directly invoke Javadoc each time). Please be aware that you need to actually enable this cool new feature. Go to Preferences | Editor | General | Code Completion and turn on the Show the documentation info pop-up in… options.
(more info here: https://blog.jetbrains.com/idea/2018/05/intellij-idea-2018-2-early-access-program-is-open)
I've recently upgraded to Intellij IDEA 2017.2 and access modifier icons disappeared from my file tree... How to get them back?
UPDATE
Since 2019.2 version you can enable it in the Project view options, toggle the Show Visibility Icons:
For older versions:
This option was disabled intentionally, see this comment for the explanation:
This information was intentionally removed, as we believe that it
brings more clutter than actual value.
To enable it back add -Dide.projectView.show.visibility=true in Help | Edit Custom VM Options.
Since 2019.2 there is actually an easy to use option as described in comment:
you can find this setting in options menu of Project Tool Window. It's called "Show Visibility Icons"
For a while now, newer versions of Visual Studio have been able to display in-line information for methods, fields etc relating to how many times they may have been referenced or changed and who changed the code last. This feature is known as CodeLens.
Is there any plugin or feature in IntelliJ IDEA similar to this that would be able to display information on an individual class/field/method basis?
(22-Aug-2022 updated) The hints from git blame are also available in the latest IntelliJ IDEA.
==================
(For CodeLens function references feature) Now it's a built-in feature after version IntelliJ IDEA 2020.1.
You can enable it from:
Ref: https://blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-beta2/
There is no such plugin (yet).
You can of course right click the left gutter (gray editor to the left of the editor) and select "Annotate". That gives you at least the last edit per line.
More similar to your desired feature (but unfortunately not inline):
Select some text (e.g. a method), then right-click Git -> Show History for Selection.
Now there is JetBrains plugin named GitToolBox.
It has some similar functionality, including the current line "blame annotation" at the end of the line with detailed commit information:
This feature is available for Rider, but not for IntelliJ yet.
In Rider it's called Code Vision
You can vote for this feature request in IntelliJ IDEA here
I checked my project into GIT support and after that there are marks in editor showing me places I changed in file relative to the last commit (I think). It really slows editor. How to turn this off? I can't find the specific option in settings.
There is no way to disable it except disabling the version control completely in Settings | Version Control.
If it slows down the editor (it shouldn't), please file a bug with a CPU snapshot.
My first day using this IDE...
is there a way to configure the IDE to open files in the project by double click? It is rather painful having to drag files from the project overview into the editor window.
You can change the KeyMap.
Go to File->Settings and find the keymap section.
You will have to create a new KeyMap by clicking copy, and then look in the View section for "Jump to Source" and change/add the keymap you want.
However, as Bozhidar Batsov noted, double clicking may not always work so well. Whether it works may vary by OS and/or windowing system. I have no trouble with it in Mac OS X, but it doesn't seem to work well in openSUSE.
There are also other predefined keymaps that you can select from this settings screen. They're set up to resemble other IDEs, so you might find them helpful if you're transitioning from something else.
It is easy way to do in windows.
I found a great solution to this problem by Jelmer Kuperus over at Orange11.
Create an .Xresources file in your home directory. Add the following line:
*multiClickTime: 400
Jelmer explains that this setting changes the default double-click speed from 200ms to 400ms, effectively slowing it down. Save the file and then run:
xrdb ~/.Xresources
The effect is immediate, no need to logout or reboot. Double-click in Intellij works as expected. I did try changing the mouse double-click speed in System Settings first before trying this out to see if that made a difference but it did not.
I am using Ubuntu 11.04, Intellij 10.5.2, and Sun JDK 1.6.0_26. YMMV
Use F4 to open quickly the selected files. Btw double clicking on files should work as well(at least in theory). Swing's buggy handling of such events, however, causes the double click to not always work in IDEA, so I eventually stopped double clicking and switched to using F4. You can also use "Autoscroll to source" from the projects menu - this will open the source files as soon as you select them in the project browser.