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
222
votes
2 answers

Output window of IntelliJ IDEA cuts output

Looks like there is a limit on the number of lines it shows. I couldn't find it in the settings. Is there a way to make IDEA keep everything in the Output window?
expert
  • 29,290
  • 30
  • 110
  • 214
220
votes
7 answers

How to exclude a file extension from IntelliJ IDEA search?

Is there a way to exclude particular file extension from the results in IntelliJ IDEA's "Find in Path" dialog (invoked by CTRL + SHIFT + F)? I want to exclude all .css files.
Robert Kusznier
  • 6,471
  • 9
  • 50
  • 71
219
votes
27 answers

IntelliJ IDEA with Junit 4.7 "!!! JUnit version 3.8 or later expected:"

When I attempt to run the following test in IntelliJ IDEA I get the message: "!!! JUnit version 3.8 or later expected:" It should be noted that this is an Android project I am working on in IntelliJ IDEA 9. public class GameScoreUtilTest { …
benstpierre
  • 32,833
  • 51
  • 177
  • 288
218
votes
13 answers

How do I get IntelliJ to recognize common Python modules?

I'm using IntelliJ 10 IDEA Ultimate Edition. I've created a new file Test.py, and IntelliJ has correctly switched to Python parsing mode. (I can confirm this by typing "d", it pops up "def" as a suggestion, and hitting tab correctly gives me "def…
Toddarooski
  • 2,645
  • 2
  • 16
  • 12
218
votes
13 answers

How do you synchronise projects to GitHub with Android Studio?

I am trying to synchronise a project that I have on in my Android Studio folder to GitHub, but I am not fully sure what to do other than adding my credentials in the options menu. Could someone give me a quick guide, please?
Dzinic
  • 2,361
  • 2
  • 15
  • 16
216
votes
4 answers

Is it possible for intellij to organize imports the same way as in Eclipse?

I'm working on a project where all the team members are using Eclipse and I'm the only IDEA user. This creates a lot of noise from imports rearrangements. The order in which eclipse imports is: Java, Javax, Org, Com, everything else in alphabetical…
rgrinberg
  • 9,638
  • 7
  • 27
  • 44
214
votes
4 answers

What are .iml files in Android Studio?

What are .iml files in Android Studio project? I read that it is configuration file for modules. I do not understand how it works, and can't I just use gradle scripts to integrate with external modules that you add to your project. Also, most of the…
shadox
  • 3,238
  • 4
  • 24
  • 38
211
votes
20 answers

Why is IntelliJ 13 IDEA so slow after upgrading from version 12?

While using IntelliJ 13 ultimate edition for a week, it just seems really slow. First of all, the whole IDE stops for a second or so every once in a while. The Java editor's auto complete is really slow compared to 12 version. I have not changed…
Jee Seok Yoon
  • 4,716
  • 9
  • 32
  • 47
210
votes
20 answers

Intellij IDEA Java classes not auto compiling on save

Yesterday I switched to IntelliJ IDEA from Eclipse. I am using JRebel with WebSphere Server 7 as well. Everything now seems to be working somewhat fine, except that when I modify a Java file, and hit save, IntelliJ does not re-compile the file, in…
mjs
  • 21,431
  • 31
  • 118
  • 200
206
votes
7 answers

How to view the list of compile errors in IntelliJ?

I am looking for a way to view all compile errors in IntelliJ, similar to how they are displayed in Eclipse. I tried searching here and Google but have not really found a solution. I really like IntelliJ, I recently converted to it from Eclipse,…
amphibient
  • 29,770
  • 54
  • 146
  • 240
205
votes
14 answers

Gradle - Could not target platform: 'Java SE 8' using tool chain: 'JDK 7 (1.7)'

I am trying to import Gradle project in Intellij Idea with local Gradle distrib and getting stacktrace with the following message: Could not target platform: 'Java SE 8' using tool chain: 'JDK 7 (1.7)'. Could anyone explain please what could be the…
Vasiliy Vlasov
  • 3,316
  • 3
  • 17
  • 20
205
votes
42 answers

Class Not Found: Empty Test Suite in IntelliJ

I'm just starting the computer science program at my college, and I'm having some issues with IntelliJ. When I try to run unit tests, I get the message Process finished with exit code 1 Class not found: "edu.macalester.comp124.hw0.AreaTest"Empty…
arnbobo
  • 2,515
  • 2
  • 12
  • 18
204
votes
21 answers

IntelliJ IDEA way of editing multiple lines

I've seen this done in TextMate and I was wondering if there's a way to do it in IDEA. Say I have the following code: leaseLabel = "Lease"; leaseLabelPlural = "Leases"; portfolioLabel = "Portfolio"; portfolioLabelPlural = "Portfolios"; …
hdx
  • 4,198
  • 7
  • 26
  • 33
200
votes
12 answers

How do I create a new class in IntelliJ without using the mouse?

Is there a way to create a new class in a desired location without using the mouse in IntelliJ? I understand there is no keyboard binding in the default keymap.
JavaRocky
  • 19,203
  • 31
  • 89
  • 110
198
votes
35 answers

IntelliJ cannot find any declarations

I completely uninstalled IntelliJ and have now reinstalled and imported my project. I imported using gradle and can see all of the files in my project present. However, when I open a file I can't find any declaration to go to by doing cmd + click. I…
Andy
  • 2,138
  • 3
  • 14
  • 14