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
140
votes
7 answers

IntelliJ gives Fatal Error: Unable to find package java.lang in classpath or bootclasspath

When I try to make a simple module in IntelliJ it responds with: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Brig
  • 10,211
  • 12
  • 47
  • 71
139
votes
7 answers

IntelliJ IDEA 9/10, what folders to check into (or not check into) source control?

Our team has just moved from Netbeans to IntelliJ 9 Ultimate and need to know what files/folders should typically be excluded from source control as they are not "workstation portable", i.e.: they reference paths that only exist on one user's…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
138
votes
14 answers

Unable to use Intellij with a generated sources folder

Related question How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin? I have a custom plugin that generates sources under target/generated-sources (Note no toolname…
Kannan Ekanath
  • 16,759
  • 22
  • 75
  • 101
138
votes
12 answers

How to debug spring-boot application with IntelliJ IDEA community Edition?

I'm having difficulties in debugging a Java spring-boot application on IntelliJ IDEA community Edition. The main problem is, that the IDE won't stop on a breakpoint, even the program surely executes through it. How can I make the the IntelliJ IDEA…
Ville Miekk-oja
  • 18,749
  • 32
  • 70
  • 106
138
votes
8 answers

Open a project in a new window in IntelliJ after "accidentally" clicking remember decision

I wanted to open a new project in a separate window in IntelliJ and I "accidentally" clicked "Remember this decision and don't ask again" and clicked "open in the same window"! Since I have more than one project it is getting really annoying to…
N3da
  • 4,323
  • 5
  • 20
  • 22
138
votes
3 answers

What is the IntelliJ shortcut to create a local variable?

In Eclipse if you have a method: String MyObject.getValue(); When using this you can go: MyObject.getValue(); If you cursor is on the line and you hit CTRL + 1 you get a context menu to 'assign a new local variable', resulting in the…
JARC
  • 5,288
  • 8
  • 38
  • 43
137
votes
11 answers

How can I give the Intellij compiler more heap space?

When I make an Intellij project, I keep getting the following out of memory error. I already increased my heap size in idea.vmoptions: -Xms128m -Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=64m -ea But I still get this…
michael
  • 106,540
  • 116
  • 246
  • 346
137
votes
11 answers

Add a properties file to IntelliJ's classpath

I'm running a simple Java program from the IntelliJ IDE using the Run->Run menu. It works fine. Now I want to add log4j logging. I added a resources folder under my project root. I added a log4j.properties file in that folder. I changed the code to…
Tony Ennis
  • 12,000
  • 7
  • 52
  • 73
136
votes
10 answers

How do I view the type of a scala expression in IntelliJ

The Eclipse scala plugin has a nice feature which shows you the type of a variable when you hover the mouse over it. How do I see the same information with the IntelliJ plugin?
Jon Freedman
  • 9,469
  • 4
  • 39
  • 58
136
votes
20 answers

How do I rename the android package name?

Pressing Shift+F6 seems only to rename the last directory. For example, in the project com.example.test it will offer to rename test only. The same applies if I navigate to package name in .java or Manifest file and press Shift+F6. …
sandalone
  • 41,141
  • 63
  • 222
  • 338
136
votes
9 answers

Intellij Idea warning - "Promise returned is ignored" with aysnc/await

I'm using Express.js in my code with Node.js v7.3. In this I've created a User Router which forwards the requests to my User Controller. I'm using async/await inside the User Controller to do asynchronous calls. The problem is that IntelliJ gives me…
Jyotman Singh
  • 10,792
  • 8
  • 39
  • 55
135
votes
15 answers

@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath

I try to make completion for custom properties in Spring Boot. I tried to create a simple project via IntelliJ IDEA 2016.3: Created a new Gradle project with Spring Boot Initializer (I haven't checked anything at all). Created a new class…
Boris
  • 4,944
  • 7
  • 36
  • 69
135
votes
8 answers

WebStorm: search does not work

I know that is used to search : Ctrl+Shift+F or Edit | Find | Find in Path and it worked before, but now always returns the empty set, although I know that what I'm looking for - there is in the project Maybe someone had this problem?
Lola
  • 2,591
  • 6
  • 24
  • 49
134
votes
3 answers

Intellij IDEA show javadoc automatically

When I am coding at Netbeans it autocompletes the code and show Javadocs. However when I am using Intellij IDEA if I click Ctrl+Space I can see the auto-complete and if I click Ctrl+Q I can see the javadoc seperately. Is it possible to see the…
kamaci
  • 72,915
  • 69
  • 228
  • 366
134
votes
5 answers

IntelliJ IDEA JDK configuration on Mac OS

I am using IntelliJ IDEA 10. Every time when I create a new project, it is asking me to choose JDK for this project. Anyone know how I can configure it and make it easy to use?
Josh Morrison
  • 7,488
  • 25
  • 67
  • 86