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

What is "Power Save Mode" in IntelliJ IDEA and other Jetbrains IDEs?

I see no readily available Google search results that answer this question. What is it, and what is it used for?
Landon Kuhn
  • 76,451
  • 45
  • 104
  • 130
196
votes
12 answers

How to remove unused imports in Intellij IDEA on commit?

Is there a way to remove unused imports in Intellij IDEA on commit? It is not very optimal to do it manually, CTRL + ALT + O helps but it's still manual.
Leonid
  • 22,360
  • 25
  • 67
  • 91
195
votes
8 answers

Intellij IDEA generate for-each/for keyboard shortcut

Is there a keyboard shortcut generating a foreach and also for loop?
Glide
  • 20,235
  • 26
  • 86
  • 135
195
votes
7 answers

IntelliJ IDEA jump from interface to implementing class in Java

Is there some shortcut that would allow me after creating method in an interface, select and jump to implementing class of that interface?
MatBanik
  • 26,356
  • 39
  • 116
  • 178
193
votes
36 answers

Error: Java: invalid target release: 11 - IntelliJ IDEA

I am trying to build an application which was built using java 8, now it's upgraded to java 11. I installed Java 11 using an oracle article in my windows machine and I use IntelliJ IDEA 2017 as my IDE. I changed my system environment variables and…
AMagic
  • 2,690
  • 3
  • 21
  • 33
192
votes
17 answers

How can I fix "unsupported class file major version 60" in IntelliJ IDEA?

I have a Gradle project in Ubuntu. It's written in Java 14. I have the Java 14 JDK installed. When I build it from the command line, everything works, but no one wants to use a command line! When I open it in IntelliJ IDEA, it throws an error: *…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
191
votes
7 answers

IntelliJ beginning of file keyboard shortcut

Is there a keyboard shortcut to move to the beginning of a file? I checked IntelliJ's Keymap for Mac OS X and it doesn't list anything for navigating to the start of a file.
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
191
votes
19 answers

intellij idea - Error: java: invalid source release 1.9

I'm trying to run my JSQL parser class, but I'm getting Error: java: invalid source release 1.9. I tried to following this answer. I changed File> Build,Execution,Deployment> Java Compiler> Project bytecode version: 1.8. However, I can't change…
Alex
  • 2,369
  • 3
  • 13
  • 23
191
votes
22 answers

Lombok added but getters and setters not recognized in Intellij IDEA

I am using IntelliJ IDEA on ubuntu. I added lombok.jar into my project and installed the Lombok plugin for IDEA. I have access to the annotations but the getters and setters aren't generated. I get the same errors I would get if I tried accessing a…
Don Quixote
  • 4,120
  • 3
  • 16
  • 27
190
votes
13 answers

IntelliJ does not show 'Class' when we right click and select 'New'

We're creating a new project in IntelliJ and must have something wrong because when we right click on a directory, select New and then get the context menu, Java based options are not shown. Currently get things like File, some HTML options, XML…
Crowie
  • 3,220
  • 7
  • 28
  • 48
190
votes
3 answers

What is the IntelliJ shortcut key to create a javadoc comment?

In Eclipse, I can press Alt+Shift+J and get a javadoc comment automatically generated with fields, returns, or whatever would be applicable for that specific javadoc comment. I'm assuming that IntelliJ IDEA has this feature. Can anyone tell me if…
josh-cain
  • 4,997
  • 7
  • 35
  • 55
189
votes
5 answers

In Intellij, how do I toggle between camel case and underscore spaced?

At my company we have two different style guides for java vs sql. In java I have a field named historyOfPresentIllness and when i write the sql, I want to name it history_of_present_illness. Is there a keyboard shortcut to switch from one to the…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
189
votes
16 answers

Intelli J IDEA takes forever to update indices

Is it normal for Intelli J to take a lot of time (almost 12 hours) to update indices for a project? I just installed Intelli J on my machine and imported a rather large Maven project (13k+ files). I understand that the project is large but I let my…
0x56794E
  • 20,883
  • 13
  • 42
  • 58
188
votes
10 answers

Start two instances of IntelliJ IDE

Well my question is pretty simple, how do I start two instances of IntelliJ (community edition). When I have one instance started and I try to start another one, all that happens is that my started instance gets focus. I'm developing Android…
Felix
  • 3,246
  • 4
  • 23
  • 25
187
votes
6 answers

Can I find out the return value before returning while debugging in Intellij?

With: Object method(){ ... return /* some complex expression */ } Is there a way I can see what value will be returned while debugging? Like somehow set a breakpoint that would be hit right after the return, but before execution goes to the…
Kyle
  • 21,377
  • 37
  • 113
  • 200