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
26
votes
1 answer

Is it legal to use IntelliJ's EAP versions for commercial use?

From my understanding, the EAP version has the ultimate features included in it. I am curious whether this version can be used for commercial use. I have no been able to find a definite answer. Thanks.
waterbottle27
  • 283
  • 3
  • 6
26
votes
1 answer

IntelliJ IDEA - Syntax Highlighting of SQL Inside Java Code

I am using IntelliJ 13 as an IDE for a project where communication with DB is done via Spring's JDBC Template. When I have code fragments in Java like the following one: getJdbcTemplate().queryForObject("SELECT CONVERT(VARCHAR(255), NEWID())",…
Vasilen Donchev
  • 975
  • 4
  • 14
  • 26
26
votes
5 answers

Use JDBC/Mysql Connector in intellij idea

I'm new in Java, and I need to establish a connection to a MySQL server (local), I have add the libraries in Intellij idea but it seems not work, the IDE can't find the class i think... I become crazy I'm searching since two hours... I come from…
Nimp
  • 441
  • 1
  • 5
  • 15
26
votes
3 answers

IntelliJ autocomplete to replace the function name

I've switched from Eclipse to IntelliJ and there is something which I couldn't find yet nor google: How to get the autocomplete to replace the name of the function? In Eclipse, it would be the ctrl+enter functionality. For example,…
Qualaelay
  • 713
  • 2
  • 10
  • 21
26
votes
4 answers

How to import existing Ant build.xml into IntelliJ IDEA

I have an existing project that uses an Ant build.xml file to maintain the location of dependency jars. In Eclipse it's very easy to import from an existing Ant file. I have searched online and looked through all of the "new project" options in…
Mike S
  • 11,329
  • 6
  • 41
  • 76
26
votes
3 answers

Can PyCharm automatically generate __eq__() and __hash__() implementations?

I am a PyCharm newbie but a long-time IntelliJ user. In IntelliJ, when you are writing a class definition, the IDE can automatically generate a constructor, equals() method, and hashCode() method based on the instance variables. This is good not…
sparc_spread
  • 10,643
  • 11
  • 45
  • 59
26
votes
5 answers

error: package com.google.common.base does not exist

given the following code in java, when compiling it u have a lot of errors : Main.java:1: error: package com.google.common.base does not exist import com.google.common.base.Preconditions; ^ Main.java:2: error:…
greenity
  • 419
  • 1
  • 5
  • 13
26
votes
1 answer

Custom surround template

How can I define my own custom surround template that I can use to wrap around a selection of javascript code followed by reformat. I've used Alt + Cmd + T to bring up this option panel.
user3610227
26
votes
3 answers

How import eclipse code style to intellij idea?

I have org.eclipse.jdt.core.prefs file, which contains eclipse code style, but I can import to intellij idea only xml files, it there any way import prefs file to intellij idea?
roman-v1
  • 728
  • 1
  • 9
  • 21
26
votes
4 answers

Intellij Idea taking forever to resolve maven dependencies

I am using intellij idea ultimate version 12.1.4 and trying to use maven with a project. Here is my pom.xml:
rahulserver
  • 10,411
  • 24
  • 90
  • 164
26
votes
4 answers

Show inferred type in Intellij Scala plugin

Is there a way to show the derived type of something in Intellij's Scala support? For example if I am fumbling my way through some slick code and want to know what type the "user" val is perhaps by olding down a key and hovering my mouse that would…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
26
votes
3 answers

How to make IntelliJ autocompletion NOT insert the full path in Javadoc

My problem is that every time I insert a @link or similar in my Javadoc and complete a class, it inserts the full package path in front of it, even thought the class is already imported. For example if I have import java.util.List; and I write…
beruic
  • 5,517
  • 3
  • 35
  • 59
26
votes
3 answers

How can I untrack a file from a git repository in Intellij

I'm having a tracked file in git but now I don't want to track it anymore (I don't want it to show up from the next commit but I still want to have it inside the folder). In the Changes tool window I have set that file as ignored in Configured…
Hải Phong
  • 5,094
  • 6
  • 31
  • 49
26
votes
1 answer

What is a changelist in IntelliJ IDEA? A list of changes compared to what? An accurate explanation is sought for

What is a changelist in IntelliJ IDEA? A list of changes compared to what? What does it mean that I can have multiple changelists? Especially, when I revert back to an earlier version (using VCS) IntelliJ wants to create a new changelist for that.…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
26
votes
4 answers

Loading external file from Karma/Jasmine test

I'm trying to accomplish a Jasmine test (using Karma and IntelliJ 13) to validate JSON files. Ideally, my test would simply load a JSON file into a data object, then let me parse through to check for valid formatting and data. I don't need to…
AlexB
  • 687
  • 2
  • 7
  • 15