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
161
votes
12 answers

Unable to make the module: related gradle configuration was not found. Please, re-import the Gradle project and try again

I use IntelliJ IDEA Ultimate 14 and Gradle 1.2. I manage the project from the console, but I need to debug some of the code from the IDE. When I try to make the project, this error window appears. When I try to debug the project, Error: Unable to…
user1339
  • 1,611
  • 2
  • 11
  • 5
160
votes
15 answers

IntelliJ - Invalid source release: 17

I've created a new Java project in IntelliJ with Gradle that uses Java 17. When running my app it has the error Cause: error: invalid source release: 17. My Settings I've installed openjdk-17 through IntelliJ and set it as my Project SDK. The…
Michael
  • 3,411
  • 4
  • 25
  • 56
159
votes
4 answers

Intellij IDEA, format all code in a project

I really like IDEA's code formatting, but how do I get it to reformat all the code in a particular project without going through each file? I've found the option to tidy / optimise imports on code before committing it to subversion which is great,…
Michael Berry
  • 70,193
  • 21
  • 157
  • 216
158
votes
14 answers

IDEA 10.5 Command line is too long

In Maven project when I run test case (on Windows): Error running TestApp.readParameter: Command line is too long. In order to reduce its length classpath file can be used. Would you like to enable classpath file mode for all run configurations of…
qinmiao
  • 5,559
  • 5
  • 36
  • 39
158
votes
10 answers

How to generate Class Diagram (UML) on Android Studio (IntelliJ Idea)

I've try to search and found this link, but Ctrl+Alt+Shift+D doesn't work. I also use find Action Ctrl+Shift+A to find action about diagram and uml but found nothing. I also search for the uml plugin, but most of them didn't work with new version of…
UmAnusorn
  • 10,420
  • 10
  • 72
  • 100
158
votes
4 answers

How do I switch to another subversion branch in Intellij?

What is the concept of switching branches in IntelliJ? I must be either blind or an idiot... I would assume there'd be a "switch to copy" option or something like that, but there is none... EDIT for clarification: my prev IDE had a simple "switch to…
PeterP
  • 4,502
  • 7
  • 22
  • 21
157
votes
15 answers

IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7

Despite specifying JDK 1.7 in all project settings (including in File -> Project Structure -> Project :: Project SDK), the following error is produced by IntelliJ 13 when trying to compile some simple Java 7 code which does use the diamond…
PNS
  • 19,295
  • 32
  • 96
  • 143
155
votes
1 answer

IntelliJ Scala Plugin's case class indentation is absurd

When a case class has many fields and their names are long, it is often a good idea to write each field in each line like: case class Person ( name: String, age: Int ) This resembles C/C++ struct definition and totally readable even when the…
lyomi
  • 4,230
  • 6
  • 30
  • 39
154
votes
4 answers

What is the difference between IntelliJ's Shelve and Git stash?

IntelliJ supports git stashes as well as its own built in shelve command. These seem to be almost identical in purpose and utility. What is the difference between them?
Daniel Compton
  • 13,878
  • 4
  • 40
  • 60
154
votes
12 answers

Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse?

In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically. In NetBeans, this is done with Ctrl + Shift + I. Is any way to do this in IntelliJ IDEA? I searched an equivalent shortcut in google,…
PlainOldProgrammer
  • 2,725
  • 5
  • 22
  • 30
154
votes
4 answers

How do I use WebStorm for Chrome Extension Development?

I just bought WebStorm 5 and so far have been really enjoying its Inspection features. One hitch I've run in to when developing my Chrome extension is that it doesn't recognize the chrome variable: Is there a way I can add the chrome variable to…
153
votes
12 answers

IntelliJ how to zoom in / out

The IntelliJ keymap says: Zoom in: Keypad + = Zoom out Keypad - - But they have no effect. Anyone have this working? New info: Now I have added more key-bindings: Zoom in: Alt-Shift-= Zoom out: Alt-Shift-minus But these still have no effect.…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
152
votes
6 answers

IntelliJ and Tomcat....changed files are not automatically recognized by Tomcat

I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat. When I change a file like an xhtml file, is there a way for tomcat to automatically pick up that change? As of right now I…
Peter
  • 1,657
  • 2
  • 11
  • 18
151
votes
16 answers

Has been compiled by a more recent version of the Java Runtime (class file version 57.0)

I get this problem Using IntelliJ. But I have the newest version of everything newly installed on my system. ... has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime…
nobism
  • 1,527
  • 2
  • 5
  • 3
151
votes
9 answers

Create Test Class in IntelliJ

I'm working within the traditional Maven Java project structure inside IntelliJ, e.g. main/java/com/x/y test/java/com/x/y When I create a class called Foo in main/java/com/x/y using IntelliJ I would like to automatically have a file called…
Scruffers
  • 4,984
  • 8
  • 35
  • 41