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

How to log data to the Flutter console?

I am a beginner and using IntelliJ IDEA, and I wanted to log data to the console? I tried print() and printDebug(), but none of my data were showing in the Flutter console.
186
votes
12 answers

stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)

Using IntelliJ 12, I have a java project and I use maven with a pom.xml. My project is using java8, but it seems the default project language level has been set to 6 while importing the project. I can change the language level to 8.0 (F4 -> Modules…
Quentin
  • 3,150
  • 4
  • 24
  • 34
185
votes
15 answers

How to show all parents and subclasses of a class in IntelliJ IDEA?

When I'm editing a Java class in Eclipse, when my cursor is over a class variable, I can do Ctrl+T to have a popup that shows all its parents and subclasses. What is the equivalent in IntelliJ? Example: Use|r user = new User(); The pipe is my…
Glide
  • 20,235
  • 26
  • 86
  • 135
185
votes
8 answers

Intellij - Unable to use newer Java 8 classes - Error : "Usage of API documented as @since 1.6+.."

I'm trying to use a java.lang.function.Function in my java 8 code base, but i keep getting the following error in Intellij. Usage of API documented as @since 1.6+ This inspection finds all usages of methods that have @since tag in their…
Abbas Gadhia
  • 14,532
  • 10
  • 61
  • 73
184
votes
5 answers

Configuring IntelliJ IDEA for unit testing with JUnit

I decided to try out IntelliJ this morning via the trial version and installed the JUnit plugin. I made a new Java project and I want to write a test case for it. How do I add the junit.jar file to my project? (I actually want to add it to every…
Bob
  • 3,283
  • 3
  • 20
  • 14
184
votes
29 answers

Change remote repository credentials (authentication) on Intellij IDEA 14

I recently changed my Bitbucket password for security reasons. However, IntelliJ didn't update my repository to the new credentials, so it stops me from pulling/pushing anything to my repository. I am not using any plugins for this, just the…
Momo
  • 3,542
  • 4
  • 21
  • 34
182
votes
2 answers

Access to 'viewBinding' exceeds its access rights

After updating Android Studio to Arctic Fox and Android Gradle plugin to 7.0.0 I'm facing this warning, I mean the app can be built successfully nonetheless of this warning but what I am missing here? What's the problem here? According to the…
181
votes
3 answers

Preview layout with merge root tag in Intellij IDEA/Android Studio

Let's imagine we are developing compound component based on LinearLayout. So, we create class like this: public class SomeView extends LinearLayout { public SomeView(Context context, AttributeSet attrs) { super(context, attrs); …
180
votes
9 answers

unable to remove file that really exists - fatal: pathspec ... did not match any files

unable to remove file that really exists - fatal: pathspec ... did not match any files I have a file under git control that simply will not be deleted. The failing command is: $ git rm .idea/workspace.xml fatal: pathspec '.idea/workspace.xml' did…
Matthew Cornell
  • 4,114
  • 3
  • 27
  • 40
179
votes
13 answers

Re-run Spring Boot Configuration Annotation Processor to update generated metadata

I've added: org.springframework.boot spring-boot-configuration-processor true to my pom.xml per intellij's request/warning. Now I'm seeing…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
179
votes
13 answers

Code Wrap IntelliJ?

How would be possible to assign a shortcut for word wrap like as sublime text do? i.e. if the code line is too long it should be automatically break to the next line. wikipedia.org.org/Word_wrap
Sayat Satybald
  • 6,300
  • 5
  • 35
  • 52
179
votes
8 answers

How to set -source 1.7 in Android Studio and Gradle

I'm getting following error when trying to compile my project in Android Studio: Gradle: error: diamond operator is not supported in -source 1.6 I have 1.7 set as target in all project preferences I've found. Also the path displayed in project…
simekadam
  • 7,334
  • 11
  • 56
  • 79
179
votes
14 answers

How can I maximize the editor pane in IntelliJ IDEA?

In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up the entire Eclipse window, and then again to restore the pane back to its previous size exposing the other panes. Is it possible to perform…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
177
votes
20 answers

java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled

After upgrade, Unable to run the application from intellij IDE. Intellij version : IntelliJ IDEA 2020.3 (Community Edition) Build #IC-203.5981.155, built on December 1, 2020 lombok version : 0.32-EAP Error : java: You aren't using a compiler…
Spartan
  • 3,213
  • 6
  • 26
  • 31
176
votes
9 answers

Best way to add Gradle support to IntelliJ Project

I have looked around quite a bit and haven't found the best solution to convert an existing IntelliJ project to Gradle. I work in a team environment and we currently share the .ipr file as we have a few build configurations that we track. We will be…
Gremash
  • 8,158
  • 6
  • 30
  • 44