Questions tagged [intellij-idea]

IntelliJ IDEA is an IDE by JetBrains. It primarily supports Java development, but also supports JavaScript, Groovy, HTML, CSS, RSS, R, Haskell, PHP, Ruby, Python, Scala, Swift, Clojure, Kotlin, Hybris, Gradle and others. Questions specifically concerning usage and problems in both Community and Ultimate Editions should use this tag. However, if you have a problem with something else and just happen to be using IntelliJ, please don't use this tag.

IntelliJ IDEA is an IDE by JetBrains. It is often simply referred to as "IDEA" or "IntelliJ". First released in 2001, it is mostly focused on boosting the developer's productivity, providing a wide set of automated refactorings to ease evolutions of the codebase.

Its rich plugin development API can be used to add almost any type of functionality, including support of new languages and frameworks, and has been used to provide VCS integration (Git, CVS), build management (Maven, Gradle, Ant), database tools and support for Spring and JEE application servers.

The Ultimate (commercial) version of the tool offers support for enterprise-class development, while the open-source (free) version is often used for Android, Groovy, Scala, and web development. A 30-day, fully functional trial of the Ultimate Edition for various platforms can be downloaded for free.

Questions about how to use IntelliJ and problems you may be experiencing with it are all welcome. However, if you're using IntelliJ but your problem seems to be with something else then you probably don't need to use this tag.

Useful links

Related tags

Old version tags

The list of version specific old tags. Most of 'em seem to be obsolete and could be rolled into the current one or removed.

42912 questions
166
votes
7 answers

IntelliJ: Viewing diff of all changed files between local and a git commit/branch

Using IntelliJ's diff viewer is a very nice way to review code because you can make changes in your local version with all the capabilities of the IntelliJ code editor (refactoring, completion, etc). Unfortunately, I have not worked out how to do…
Jon Tirsen
  • 4,750
  • 4
  • 29
  • 27
166
votes
9 answers

How do I show dependencies tree in Android Studio?

My goal is to see the tree of dependencies (such as: appcompat, dagger, etc) in a particular project. Like the one IntelliJ:
fruqi
  • 4,983
  • 4
  • 26
  • 32
166
votes
2 answers

How to configure IntelliJ (also Android Studio) redo shortcut to CTRL+Y instead of CTRL+SHIFT+Z?

The default IntelliJ / Android Studio "Redo" action shortcut is CTRL+Shift+Z and this is a common problem for Windows users. A bigger problem is CTRL+Y is mapped to the "Delete line" action - and this causes the undo stack to be lost. To solve this…
Ismail Yavuz
  • 6,727
  • 6
  • 29
  • 50
166
votes
7 answers

How find all unused classes in Intellij Idea?

There is an inspection "Unused declaration" which can find all unused code in Intellij Idea. (see How to use IntelliJ IDEA to find all unused code?) But I want to find all unused classes, not methods, variables etc. Only classes. (it is difficult to…
Cherry
  • 31,309
  • 66
  • 224
  • 364
166
votes
5 answers

How to expand folded package chain in Intellij IDEA?

Intellij IDEA automatically chain packages together if the intermediate ones are otherwise empty. It is a nice feature in general. However, sometimes you don't want them to be chained, especially when you are in the middle of creating new package…
JBT
  • 8,498
  • 18
  • 65
  • 104
165
votes
11 answers

Intellij IDEA: Hotkey for "scroll from source"

I can't find a hotkey for the feature "Scroll from Source". What is the difference between Scroll from Source and Scroll to Source as well?
mjs
  • 21,431
  • 31
  • 118
  • 200
165
votes
4 answers

Lambda expression vs method reference

IntelliJ keeps proposing me to replace my lambda expressions with method references. Is there any objective difference between both of them?
Gerard
  • 2,784
  • 3
  • 19
  • 17
165
votes
10 answers

In IntelliJ IDEA how do I replace text with a new line?

I wanted to replace all commas with commas and a newline using IntelliJ IDEA's replace function. What do I put in the search box? In vim I'd use &\r.
Bjorn
  • 69,215
  • 39
  • 136
  • 164
164
votes
35 answers

Why so red? IntelliJ seems to think every declaration/method cannot be found/resolved

I just installed and re-installed IntelliJ. Every Java file is coming up RED. I checked the JDK; it is at 1.6.##. The maven clean install build worked just fine. I'm getting the usual highlighted errors. On every declaration: Cannot resolve symbol…
iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169
163
votes
12 answers

Where can I download IntelliJ IDEA Color Schemes?

I am an Eclipse user mainly and I find I must have a dark color scheme. I cannot seem to find a dark color scheme as I search Google. Where can I download IntelliJ IDEA Color Schemes? I am evaluating mainly for HTML/JavaScript.
Aaron Greenlee
  • 4,587
  • 4
  • 26
  • 37
163
votes
4 answers

How do I keep IntelliJ from closing my Editor Tabs automatically?

When opening more than 10 Editor Tabs, IntelliJ automatically closes my least used Tab each time I open a new Tab. How can I increase this limit? More recent IntelliJ settings are accessed differently than older versions.
Heather92065
  • 7,333
  • 6
  • 31
  • 39
163
votes
10 answers

"Wrap with try...catch" in IntelliJ?

Can I select a block of code and have IntelliJ wrap it with a "try...catch" ? Is there a keyboard shortcut?
ripper234
  • 222,824
  • 274
  • 634
  • 905
163
votes
4 answers

Android Studio: Javadoc is empty on hover

I have moved from Eclipse to Android Studio recently, and am liking it. However, I miss the Javadoc on hover feature from Eclipse. I followed the instructions here to add the functionality, however, my hovers contain no Javadoc. If I use my…
Doge
  • 6,553
  • 5
  • 24
  • 25
163
votes
34 answers

Intellij idea cannot resolve anything in maven

I just imported a project with pom.xml, but the IDE didn't resolve anything in maven dependencies. Anything defined in pom.xml dependencies when import in code raise an error cannot resolve symbol xxxxx But mvn install will work, I try import the…
Burst
  • 1,755
  • 2
  • 11
  • 7
162
votes
6 answers

How to deal with IntelliJ IDEA project files under Git source control constantly changing?

Everyone on our team uses IntelliJ IDEA, and we find it useful to put its project files (.ipr and .iml) into source control so that we can share build configurations, settings, and inspections. Plus, we can then use those inspection settings on our…
user65839