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
26
votes
4 answers

Add this. to member variables/methods in IntelliJ Idea

Is there a way in IntelliJ Idea to force this. to be automatically placed into code on a format or save or at the very least show an error if it should be in there?
Dan King
  • 1,080
  • 1
  • 11
  • 28
26
votes
1 answer

How to make IntelliJ know FIXME?

In IntelliJ 12, the FIXME comment is regarded as a normal comment with typo. How to make it known by IntelliJ IDEA just like TODO comment?
chance
  • 6,307
  • 13
  • 46
  • 70
26
votes
4 answers

Is it possible to change IntelliJ's code generation template for equals() and hashCode()

Is it possible to change the code generation template for equals() and hashCode()? I would like the generated code to use the Java 7 Objects class for theses methods.
Rylander
  • 19,449
  • 25
  • 93
  • 144
26
votes
0 answers

Which files shouldn't be checked in into version control in Android Studio

I have used Eclipse IDE with the Android SDK Tools in the past, and now I'm migrating to Android Studio. Android Studio generates a lot of files, like build.gradle. Which files/folders should I add to the .gitignore file? EDIT: A lot of questions…
FalconC
  • 1,358
  • 2
  • 14
  • 22
26
votes
2 answers

IntelliJ Idea (debugging) conditional breakpoint dependent on other breakpoints

I want to set a debug breakpoint in IntelliJ Idea that is only active, if another previous breakpoint was activated. For example i have a breakpoint B1 on line 10, and another breakpoint B2 on line 20. Even if B2s condition is true, the debugger…
klingt.net
  • 2,019
  • 3
  • 18
  • 19
26
votes
2 answers

How to quickly find constructor(s) in IntelliJ IDEA?

Is there way to quickly find constructors of a particular class in IntelliJ IDEA?
Eugene
  • 59,186
  • 91
  • 226
  • 333
26
votes
1 answer

Running junit tests in intelliJ in parallel

Is it possible to run junit tests in intelliJ in parallel? If so, how do i do this? I set the "fork" parameter to class level and this didn't do anything - actually, it made everything a bit slower, so i'm unsure what "fork" does that is…
bharal
  • 15,461
  • 36
  • 117
  • 195
26
votes
3 answers

How find out static string result concatenation in Intellij Idea without running code?

Code example: public class StringHolder{ public static final String ONE = "ONE"; public static final String TWO = "TWO"; public static final String THREE = "THREE"; public static void main (String[] args){ String…
Cherry
  • 31,309
  • 66
  • 224
  • 364
26
votes
2 answers

Intellij: Change JUnit Test Class template

I would like to customize the JUnit Test class template however I cannot find it anywhere in settings. This guy has the same problem. I can't find anything in File Templates or Live Templates. I'm using Intellij 11.
shmish111
  • 3,697
  • 5
  • 30
  • 52
26
votes
4 answers

intellij idea data sources doesn't see existing table in the database

intellij idea data sources doesn't see existing table in my mysql database, while Netbeans see it. i've created a table in the database. When i create connection in intellij idea data sources, it sees my scheme, i do select it in "schemas and…
WebComer
  • 1,131
  • 2
  • 19
  • 31
26
votes
2 answers

Adding maven repo in IntelliJ

I'm having trouble adding this repo http://repo1.maven.org/maven2/ under Settings > Maven > Repositories. It also says Nexus Service or Artifactory URL. How can I check if the URL is one of these types? http://repo1.maven.org/maven2/ is the URL I…
Joelmob
  • 1,076
  • 2
  • 10
  • 22
26
votes
8 answers

intellij navigate to file stopped working

So we have a large project and I use the intellij navigate to file cntrl+shift+n all the time. I don't know what happened but now when I try and use it - it can't find anything. I haven't recently installed any plugins or anything. I've restarted…
Uncle Iroh
  • 5,748
  • 6
  • 48
  • 61
25
votes
4 answers

How can I add a "Library Project" in IntelliJ IDEA?

I'm using ActionBarSherlock in an Android project that I developed using Eclipse. I'd like to migrate that project over to IntelliJ IDEA, but I'm not sure how to add a "Library Project" to IDEA. Is this a feature IDEA supports? If so, can someone…
Marc Chambers
  • 391
  • 1
  • 3
  • 14
25
votes
2 answers

Why does IntelliJ take 20+ seconds to launch a unit test?

In Eclipse, (if I remember correctly) I could run a JUnit test almost instantaneously with virtually no startup time. This meant I could do a codechange+test cycle in a couple of seconds. I've recently migrating to IDEA IntelliJ, which seems to have…
spikemanuk
  • 432
  • 1
  • 5
  • 13
25
votes
7 answers

How to see an object's full type name in IntelliJ Idea?

For example, having the following code: // This is hidden from my eyes String str = "abc"; // I can see this System.out.println(str); i'd like to point to str in the last line and see that it's type is indeed java.lang.String (not just String).…
Ivan
  • 63,011
  • 101
  • 250
  • 382