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
151
votes
5 answers

How to show method parameters hint in Intellij IDEA?

int beginIndex, int endIndex is important when we invoke methods. How to show this when the cursor is in the brackets?
guo
  • 9,674
  • 9
  • 41
  • 79
150
votes
9 answers

How can I use tabs for indentation in IntelliJ IDEA?

How can I use tabs instead of multiple spaces for indentation in IntelliJ IDEA 11.0? I have "Use tab character" checked under "Code Style" > "General" > "Default Indent Options". And also tried to have "Smart tabs" checked, but it doesn't help. From…
Jonas
  • 121,568
  • 97
  • 310
  • 388
150
votes
20 answers

What does this symbol mean in IntelliJ? (red circle on bottom-left corner of file name, with 'J' in it)

Under the target folder in IntelliJ for a Java project I created, I have a few java source files in the package. Beside each file the 'J' icon has a red circle with a line through it. What does that mean? How do I fix it?
TERACytE
  • 7,553
  • 13
  • 75
  • 111
150
votes
22 answers

Unable to create Scala class on IntelliJ

I'm just starting to learn Scala. I have installed the Scala plugin for IntelliJ, and created a new Scala project. But when I right-click on the src folder to make a new Scala class, there is no option to do so. Am I missing something?
Saurav Sircar
  • 1,743
  • 2
  • 12
  • 12
150
votes
10 answers

IntelliJ Column Selection using Cursor Keys

Is it possible to some how setup IntelliJ IDEA so that I can column select with the cursor keys similarly to how I might in Notepad++, Visual Studio, or FlashDevelop. For instance when I'm typing code I almost always do my navigation solely through…
149
votes
7 answers

How to create SBT project with IntelliJ Idea?

I just got started with Scala/LiftWeb/Sbt developing, and I'd like to import a Sbt project in IntelliJ Idea. Actually, I managed to import my project in two different ways: 1) with Maven. I created a Maven project, and of top of that I created a Sbt…
ksemeks
  • 1,778
  • 3
  • 15
  • 17
149
votes
32 answers

Maven package works but Intellij's build fails

I have a JDK 1.7 project with a maven dependency to a local jar in my maven repo. I'm unable to build the project using Intellij, with the errors that a symbol cannot be found (the symbol is a class importing packages from the local jar) But I can…
Yarin Miran
  • 3,241
  • 6
  • 30
  • 27
149
votes
7 answers

How to automatically navigate to current class in IntelliJ IDEA Project Tool Window?

I would like to have a keyboard shortcut in IntelliJ IDEA that has the following effect: the tree in the project tool window expands to show the currently open class (or file), and this class becomes selected in the tree. Is this possible?
lbalazscs
  • 17,474
  • 7
  • 42
  • 50
148
votes
2 answers

How to set IntelliJ IDEA Project SDK

I just installed IntelliJ IDEA and when I try to create my first Project it asks for me to set up the Project SDK. When I click on "JDK" it asks for me to select the home directory of the JDK as shown in this image. I'm having trouble locating…
user2419553
  • 1,617
  • 2
  • 12
  • 7
147
votes
4 answers

What does a tilde in angle brackets mean when creating a Java generic class?

I was reading through some JMockit examples and found this code: final List actualItems = new ArrayList<~>(); What does the tilde in the generic identifier mean? I know it's the unary bitwise NOT operator, but I don't see an operand…
Michael K
  • 3,297
  • 3
  • 25
  • 37
147
votes
31 answers

Kotlin unresolved reference in IntelliJ

I started off with this tutorial for learning Kotlin in IntelliJ IDEA. When I tried running the following example, fun main(args: Array) { println("lol") } Build fails with the following error: Error:(5, 5) Kotlin: Unresolved reference:…
Anony-mouse
  • 2,041
  • 2
  • 11
  • 23
147
votes
14 answers

Intellij idea subversion checkout error: `Cannot run program "svn"`

I am using intellij idea 13.0. When I am trying to checkout from subversion I am getting error Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified How do I fix this?
JULIIncognito
  • 1,875
  • 2
  • 15
  • 15
146
votes
8 answers

How can I stop indexing intellij idea?

Without "excluding" folders, how can I stop Indexing intellij idea on start? It's very very annoying that it starts indexing on startup without allowing you to, for example, debug a test case making you wait until indexing has finished.
Jaime Agudo
  • 8,076
  • 4
  • 30
  • 35
144
votes
8 answers

How to view maven dependency hierarchy in IntelliJ

I can see the dependency hierarchy in Eclipse. How can I do it in IntelliJ?
zjffdu
  • 25,496
  • 45
  • 109
  • 159
144
votes
9 answers

How to: Install Plugin in Android Studio

I'm looking for installing custom plugin on Android Studio, how can I go about it?
zIronManBox
  • 4,967
  • 6
  • 19
  • 35