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
251
votes
20 answers

What is the best IDE to develop Android apps in?

I am about to start developing an android app and need to get an IDE. Eclipse and the android eclipse plugin appears to be the natural choice. However I am familiar with intelliJ and re-sharper so I would prefer use intelliJ. Has anyone used…
Jamey McElveen
  • 18,135
  • 25
  • 89
  • 129
250
votes
49 answers

Error: Could not find or load main class in intelliJ IDE

I'm a beginner in Java and am trying to run my code using IntelliJ that I just installed as my IDE with JDK 1.7. The following piece of code keeps does not even compile and keeps giving me the error: Error: Could not find or load main class…
Confused Mailman
  • 2,609
  • 2
  • 14
  • 4
245
votes
15 answers

Getting "NoSuchMethodError: org.hamcrest.Matcher.describeMismatch" when running test in IntelliJ 10.5

I'm using JUnit-dep 4.10 and Hamcrest 1.3.RC2. I've created a custom matcher that looks like the following: public static class MyMatcher extends TypeSafeMatcher { @Override protected boolean matchesSafely(String s) { /*…
Noel Yap
  • 18,822
  • 21
  • 92
  • 144
245
votes
30 answers

How to set gradle home while importing existing project in Android studio

How to set gradle home while importing existing project in Android studio. While trying to import I need to set up this path.
Deniz
  • 12,332
  • 10
  • 44
  • 62
244
votes
7 answers

How to stop IntelliJ truncating output when I run a build?

When I run our build from IntelliJ it pumps out a lot of debugging. But it gets truncated in the Run console. Can I make IntelliJ preserve more output? Or, preferably, all of it?
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
243
votes
8 answers

How to add directory to classpath in an application run profile in IntelliJ IDEA?

I'm trying to add a directory to the classpath of an application run profile If I override by using -cp x:target/classes in the VM settings, I get the following error: java.lang.NoClassDefFoundError:…
sal
  • 23,373
  • 15
  • 66
  • 85
240
votes
7 answers

System.out.println() shortcut on Intellij IDEA

I know I can print System.out.println() with "sout" + tab. Is there a way I can do it with "Syso" + ctrl + space like in eclipse?
m.rossi
  • 2,602
  • 2
  • 12
  • 13
240
votes
3 answers

Disable IntelliJ Starred (Package) Imports?

I'm a migrating Eclipse IDE user and am learning my way round IntelliJ IDEA 9. By default Eclipse IDE won't use a starred import until you import 99 classes from the same package, so it practically never happens. But IntelliJ IDEA seems only too…
Iain Samuel McLean Elder
  • 19,791
  • 12
  • 64
  • 80
235
votes
39 answers

Import Maven dependencies in IntelliJ IDEA

I just imported a project from subversion to IntelliJ IDEA 11 - it's a maven project. But I have a problem in maven library dependencies so that I can't include all maven dependencies automatically - IDEA shows dependency errors only when I open…
Zaur Guliyev
  • 4,254
  • 7
  • 28
  • 44
233
votes
13 answers

Word wrapping in PhpStorm

How can I enable word wrapping in PhpStorm? I need to enable it only for some of my files (with extension .txt). Is it possible?
ozahorulia
  • 9,798
  • 8
  • 48
  • 72
232
votes
19 answers

How do you input command line arguments in IntelliJ IDEA?

I usually input command line arguments in Eclipse via run configuration. But I don't know how do achieve the same task in IntelliJ IDEA.
sungkwangsong
  • 5,575
  • 4
  • 26
  • 18
230
votes
25 answers

Java "lambda expressions not supported at this language level"

I was testing out some new features of Java 8 and copied the example into my IDE (Eclipse originally, then IntelliJ) as shown here Eclipse offered no support whatsoever for lambda expressions, and IntelliJ kept reporting an error Lambda…
Czipperz
  • 3,268
  • 2
  • 18
  • 25
229
votes
4 answers

How to generate serial version UID in Intellij

When I used Eclipse it had a nice feature to generate serial version UID. But what to do in IntelliJ? How to choose or generate identical serial version UID in IntelliJ? And what to do when you modify old class? If you haven't specify the id, it is…
catch23
  • 17,519
  • 42
  • 144
  • 217
224
votes
32 answers

Intellij Cannot resolve symbol on import

This problem happens intermittently for different libraries and different projects. When trying to import a library, the package will be recognized, but the class name can't be resolved. If on the import statement, I right-click -> Goto -> the…
a5af
  • 2,514
  • 2
  • 14
  • 13
223
votes
2 answers

How to display hidden characters by default (ZERO WIDTH SPACE ie. ​)

I just lost part of my weekend because of this ... joker - zero width space. I just used some snippets from google groups and didn't recognize that there are doubled characters, because Idea (11) didn't show them, which was causing problems with…
biesior
  • 55,576
  • 10
  • 125
  • 182