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

How to avoid "Sharing is only supported for boot loader classes because bootstrap classpath has been appended" warning during debug with Java 11?

Recently I switched to the Java 11 and start to debug my app and saw this message: OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended Found only this commit and…
Dmitriy Dumanskiy
  • 11,657
  • 9
  • 37
  • 57
174
votes
16 answers

IntelliJ Idea Ctrl+Alt+Left shortcut doesn't work in Ubuntu

I am using IntelliJ Idea 2017.3 latest release in Ubuntu 2017.10 and shortcut Ctrl+Alt+Left/Right doesn't work. Whereas from menu Navigate -> Back/Forward works fine. Reference : https://www.jetbrains.com/help/idea/navigation-in-source-code.html
Samy
  • 2,387
  • 2
  • 17
  • 31
174
votes
5 answers

Is it possible to disable duplicate code detection in IntelliJ IDEA?

Is it possible to disable duplicate code detection in IntelliJ? I haven't found this feature to be useful and it continues to distract me.
zudduz
  • 2,457
  • 5
  • 24
  • 29
174
votes
6 answers

How do I share IntelliJ Run/Debug configurations between projects?

I have many different versions of my app. Each one is a separate IntelliJ project. Every time I open a new one, the list of configurations starts blank: The annoying thing about this is I deploy to 1 VM and I have to copy and paste the debug…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
174
votes
16 answers

How enable auto-format code for Intellij IDEA?

Is it possible in Intellij IDEA after typing ';' or press 'Enter' happened formatting of this string? For instance, to: a+b=10; after: a + b = 10; Or only possible option: Code > Reformat Code...? Thank you!
0x131313
  • 2,107
  • 2
  • 15
  • 18
174
votes
7 answers

Using Build Flavors - Structuring source folders and build.gradle correctly

Please note: Answer edited after Xavier's Answer I am trying to use different Build Flavors for one same Application project in Android Studio. However, I seem to be having a terrible time configuring it to work appropriately. Steps: Create a new…
daniel_c05
  • 11,438
  • 17
  • 60
  • 78
172
votes
9 answers

Getting Gradle dependencies in IntelliJ IDEA using Gradle build

Grade build, even from inside IntelliJ IDEA does not put the dependencies into the "External Libraries" folder, so these classes don't show up as suggestions in the editor and when I manually add them as an import there is a compile error. How can I…
Andrew
  • 2,898
  • 4
  • 25
  • 23
172
votes
9 answers

How to clean project cache in IntelliJ IDEA like Eclipse's clean?

Sometimes the IDE makes some error because of the cache. In Eclipse, we can use clean to solve the problem. How can I do this in IntelliJ?
Marshall
  • 2,231
  • 4
  • 17
  • 15
172
votes
37 answers

Building with Lombok's @Slf4j and Intellij: Cannot find symbol log

I have a maven project that builds with no problems from the command line. However, when I build it with IntelliJ, I get the error: java: FileName.java:89: cannot find symbol symbol : variable log There is no log defined or imported in the java…
user1991839
  • 1,993
  • 2
  • 14
  • 11
171
votes
7 answers

How to correct indentation in IntelliJ

How can indentation be automatically (not manually) corrected in IntelliJ? In Eclipse, it's possible to just highlight the code that needs indenting, right-click, and select Source > Correct indentation. Is there any method for doing the same thing…
junaidp
  • 10,801
  • 29
  • 89
  • 137
170
votes
7 answers

How to have the formatter wrap code with IntelliJ?

I'm not able to format my code in IntelliJ. I can see the margin line (by default at 120 columns) but it seems that the activation from the menu: Code -> Reformat Code is just ignoring this margin.
Jeroen Rosenberg
  • 4,552
  • 3
  • 27
  • 39
170
votes
8 answers

Remove all breakpoints in IntelliJ IDEA

Is there a possibility to remove all breakpoints in the module (might be using a shortcut) in IntelliJ IDEA IDE? Thanks.
Eugene
  • 59,186
  • 91
  • 226
  • 333
168
votes
8 answers

Jenkinsfile syntax highlighting in Java project using IntelliJ IDEA

We already tried the approaches as listed below: https://github.com/oliverlockwood/jenkinsfile-idea-plugin https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij After having searched the web for many hours on multiple days, we still…
rexford
  • 5,192
  • 5
  • 27
  • 40
168
votes
36 answers

Getting "cannot find Symbol" in Java project in IntelliJ

I make this call to a static singleton instance from the class GameManager.java. HUD.getInstance().update(timeDelta); HUD.java contains the HUD class as well as two other related classes, HUDTextElement and HUDElement. All the classes are in the…
joe
  • 2,139
  • 2
  • 15
  • 13
167
votes
2 answers

Rebuild IntelliJ project indexes

IntelliJ IDEA 10.5.1 is reporting zero usages for all method, classes etc. Can I force IntelliJ to rebuild the project indexes?
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120