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
Filter by
Sorted by
Tagged with
1388 votes
21 answers
322k views

How can I permanently enable line numbers in IntelliJ?

How can I permanently enable line numbers in IntelliJ IDEA?
user avatar
965 votes
25 answers
517k views

Error:java: javacTask: source release 8 requires target release 1.8

Using IntelliJ IDE can't compile any projects. Screenshots of settings below: Used JDK: Project SDK and Language level: Language Level: Anybody have any ideas?
Hobbyist's user avatar
  • 16k
915 votes
14 answers
1.3m views

Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project

When creating a new Java project in IntelliJ IDEA, the following directories and files are created: ./projectname.iml ./projectname.ipr ./projectname.iws ./src/ I want to configure IntelliJ IDEA to ...
knorv's user avatar
  • 49.6k
842 votes
14 answers
325k views

IntelliJ: Never use wildcard imports

Is there a way to tell IntelliJ never to use wildcard imports? Under 'Settings > Code Style > Imports', I can see that you can specify the 'class count' prior to IntelliJ using wildcard imports. ...
digiarnie's user avatar
  • 22.8k
786 votes
38 answers
263k views

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target ...
Joel's user avatar
  • 23k
778 votes
64 answers
811k views

IntelliJ inspection gives "Cannot resolve symbol" but still compiles code

Platform: IntelliJ Community Edition 10.0.3 SDK: jdk1.6.0_21 OS: Windows 7 So I have a strange situation with IntelliJ that has me completely stumped. I setup a Maven project and add log4j as a ...
Kevin Sitze's user avatar
  • 8,199
696 votes
13 answers
599k views

What to gitignore from the .idea folder?

Possible Duplicate: Intellij Idea 9/10, what folders to check into (or not check into) source control? I started using WebStorm for web development and am not sure what to add and what to exclude ...
Borek Bernard's user avatar
678 votes
22 answers
189k views

IntelliJ show JavaDocs tooltip on mouse over

In Eclipse, when hovering over a method, variable, etc. a tooltip is displayed with the corresponding JavaDocs. Is there such a feature in IntelliJ?
Steve Kuo's user avatar
  • 62.4k
665 votes
24 answers
896k views

How to build JARs from IntelliJ IDEA properly?

I have a project that contains a single module, and some dependencies. I'd like to create a JAR, in a separate directory, that contains the compiled module. In addition, I would like to have the ...
662 votes
18 answers
1.3m views

How to clear gradle cache?

I'm trying to use Android Studio, and the first time I boot it up, it takes like 45 MINUTES to compile... If I don't quit the application, it is okay - each subsequent compilation/running the app will ...
David T.'s user avatar
  • 22.8k
648 votes
15 answers
412k views

Search all the occurrences of a string in the entire project in Android Studio

I've just started using Android Studio (IntelliJ), and I now look for the feature to find the occurrence of a string in any of the files in my project. For example: I want to find all the files that ...
kramer65's user avatar
  • 52k
562 votes
75 answers
686k views

"Default Activity Not Found" on Android Studio upgrade

I upgraded IntelliJ IDEA from 12.0.4 to 12.10. Now all the modules in my Android project give the error: Error: Default Activity Not Found I reverted back to 12.0.4 and it everything works again. ...
Saad Farooq's user avatar
  • 13.3k
552 votes
6 answers
50k views

How do I turn off the unlimited whitespace in IntelliJ editor?

How do I remove the ability to move the cursor after the end of line in IntelliJ?
Joshua's user avatar
  • 26.5k
546 votes
5 answers
195k views

Can IntelliJ IDEA encapsulate all of the functionality of WebStorm and PHPStorm through plugins? [closed]

I am in the market for a new IDE but am confused about the overlap between some of Jetbrains' offerings. It looks like IntelliJ IDEA has plugins that allow you to do Node.js and php development. Can ...
mr.freeze's user avatar
  • 13.9k
544 votes
39 answers
467k views

IntelliJ does not show project folders

I have an issue with IntelliJ. It doesn't show any folders in my project view on the left. My setting is "View As: Project" How can I manage it so that the folders and packages are shown again? I don'...
Alex's user avatar
  • 8,888
513 votes
18 answers
315k views

IDEA: javac: source release 1.7 requires target release 1.7

When running a JUnit test, using IntelliJ IDEA, I get How can I correct this? Using SDK 1.7 Module language level is 1.7 Maven build works fine. (That's why I believe this in IDEA configuration ...
James Raitsev's user avatar
512 votes
11 answers
328k views

How to see JavaDoc in IntelliJ IDEA? [duplicate]

I just switched from Eclipse to IntelliJ. IntelliJ lacks one feature from Eclipse - when you put your mouse over a method, Eclipse shows javadoc info. I think the way to show it is to use a shortcut ...
Eugene's user avatar
  • 59.7k
510 votes
6 answers
224k views

Git Stash vs Shelve in IntelliJ IDEA/Netbeans

I am very unfamiliar with the shelve aspect of Git (EDIT: not an aspect of Git, but rather IntelliJ IDEA feature of shelve). If stash is used to put aside unfinished work what is shelve then? What ...
Subtubes's user avatar
  • 16.4k
499 votes
26 answers
449k views

How to open and edit multiple projects in the same window?

I build in maven multiple projects (let's name them A,B,C). Project A uses .jar of project B which uses .jar of project C. I am modifying the code of all A/B/C projects, (A is MVC app, B are business ...
Xorty's user avatar
  • 18.6k
471 votes
10 answers
312k views

IntelliJ shortcut to show a popup of methods in a class that can be searched

I'm switching over from Eclipse to IntelliJ. In Eclipse, Ctrl+O in the editor, shows a hover popup that allows to search for a method in the class you're editing. What is the equivalent shortcut for ...
Glide's user avatar
  • 20.7k
463 votes
14 answers
142k views

Locate current file in IntelliJ

How do I locate the current file in the project structure? (Similar to Visual Studio's Ctrl + Alt + L). What is the name of the operation (so I can define it in the keymap)
ripper234's user avatar
  • 226k
449 votes
13 answers
264k views

IntelliJ - Convert a Java project/module into a Maven project/module

I have a project on Bitbucket. Only the sources are committed. To retrieve the project onto a new machine, I used Version Control > Checkout from Version Control from within IntelliJ. It then asks ...
Neil Traft's user avatar
435 votes
6 answers
145k views

How to disable code formatting for some part of the code using comments?

I'd like to selectively disable the IntelliJ IDEA code formatter for a portion of code just like I can in Eclipse. Does IntelliJ support this feature, and if so, how do I use it?
Greg Mattes's user avatar
  • 33.5k
432 votes
14 answers
257k views

Intellij reformat on file save

I remember seeing in either IntelliJ or Eclipse the setting to reformat (cleanup) files whenever they are saved. How do I find it (didn't find it in the settings)
ripper234's user avatar
  • 226k
423 votes
10 answers
132k views

How to make IntelliJ IDEA insert a new line at every end of file?

How do I make IntelliJ IDEA insert a new line at every end of file, so that GitHub doesn't complain for example?
NightRa's user avatar
  • 11.2k
419 votes
33 answers
255k views

Android studio Error "Unsupported Modules Detected: Compilation is not supported for following modules"

I am using Android studio 1.0.1. I have a java module referred by other modules in my project. I have checked it out from SVN But now every Unsupported Modules Detected: Compilation is not supported ...
sappu's user avatar
  • 6,885
410 votes
4 answers
210k views

How to use IntelliJ IDEA to find all unused code?

When I am in a .java file, the unused code is usually grayed out or has a green underline saying this code will probably (probably because of some weird JNI/Reflection corner cases) be unused. But I ...
pathikrit's user avatar
  • 33.1k
407 votes
16 answers
333k views

How to define Gradle's home in IDEA?

I am trying to import a Gradle project into IntelliJ, and when I get to the Gradle Home textbox, it is not automatically populated, nor will typing in the path of Gradle Home result in a valid ...
user2699970's user avatar
  • 4,073
407 votes
6 answers
108k views

Is there "Break on Exception" in IntelliJ?

Is there feature that will automatically break debugging on first exception occurrence? So we start application do something that throw exception got IntelliJ popped up highlighted line where ...
Mike Chaliy's user avatar
  • 26.3k
405 votes
19 answers
366k views

Error:java: invalid source release: 8 in Intellij. What does it mean?

Im trying to compile some code in I'm using Intellij Ultimate 13.1.4, but I get the following error and I have no idea what it means: Information:Using javac 1.7.0_55 to compile java sources ...
David says Reinstate Monica's user avatar
402 votes
21 answers
470k views

Force Intellij IDEA to reread all maven dependencies

How to force intellij idea to reread/update all dependencies specified in the pom file ?
kubek2k's user avatar
  • 5,694
393 votes
17 answers
238k views

What is the shortcut in IntelliJ IDEA to find method / functions?

I know that Ctrl + N is to find classes and it is very useful. But what about methods?
Felipe's user avatar
  • 16.9k
388 votes
20 answers
161k views

Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA

I know Ctrl+Shift+Backspace is used to go to the location of the last edit. But I want to jump to whichever location I was most recently at, not necessarily one where I edited anything. For example, ...
AnkurVj's user avatar
  • 8,028
378 votes
15 answers
94k views

How to prevent open last projects when IntelliJ IDEA starts?

By default IntelliJ IDEA opens the last project when starting. How to start IntelliJ without opening last project?
qwazer's user avatar
  • 7,334
373 votes
31 answers
209k views

Error: Unfortunately you can't have non-Gradle Java modules and > Android-Gradle modules in one project

I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven. gps-trackman.v1 is my root project and I've ...
kamokaze's user avatar
  • 7,282
370 votes
5 answers
104k views

WebStorm/PhpStorm double quotes in TypeScript auto import

I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates. WebStorm/PhpStorm auto import adds import statements with double quotes and ruins the style. I ...
Estus Flask's user avatar
365 votes
41 answers
238k views

Things possible in IntelliJ that aren't possible in Eclipse?

I have heard from people who have switched either way and who swear by the one or the other. Being a huge Eclipse fan but having not had the time to try out IntelliJ, I am interested in hearing from ...
364 votes
13 answers
317k views

How to increase IDE memory limit in IntelliJ IDEA on Mac?

I'm using IDEA 12 Leda on Mountain Lion. I wanted to increase the maximum memory that IDE can use. I set the VMOptions in Info.plist file to be -Xmx2048m -ea -XX:+HeapDumpOnOutOfMemoryError -Xverify:...
woodings's user avatar
  • 7,623
362 votes
8 answers
226k views

How to change line width in IntelliJ (from 120 character)

I was wondering how I can change the line length in IntelliJ. Since I use a pretty high resolution, I get that line that shows 120 characters straight through the middle of the screen. Can I change ...
user3685412's user avatar
  • 4,247
361 votes
9 answers
221k views

How to count lines of Java code using IntelliJ IDEA?

How to count lines of Java code using IntelliJ IDEA?
Gary's user avatar
  • 6,527
359 votes
11 answers
206k views

File size exceeds configured limit (2560000), code insight features not available

I am trying to work on a large Javascript file in Jetbrains WebStorm 8 and I am getting a message at the top of the editing window that says: File size exceeds configured limit (2560000). Code ...
Flash's user avatar
  • 16.2k
344 votes
56 answers
637k views

Maven plugins can not be found in IntelliJ

After updating IntelliJ from version 12 to 13, the following Maven-related plugins cannot be resolved: org.apache.maven.plugins:maven-clean-plugin:2.4.1 org.apache.maven.plugins:maven-deploy-plugin ...
Spring's user avatar
  • 11.6k
338 votes
7 answers
144k views

Intellij Idea: Importing Gradle project - getting JAVA_HOME not defined yet

Intellij Idea 14.1.4 Mac OS X Yosemite 10.10.3 and later. From the IDE: Import Project -> (Chosen directory to import) -> Import project from external model, Gradle -> Gradle Home: /usr/...
bentobox's user avatar
  • 3,958
331 votes
7 answers
112k views

Intellij shortcut to convert code to upper or lower case?

What is the Intellij shortcut to convert code to upper or lower case?
Marcus Leon's user avatar
  • 55.8k
326 votes
10 answers
99k views

IntelliJ shows method parameter hints on usage - How to disable it

I am new to IntelliJ and recently updated to IntelliJ-2016.3. In the editor for Java code, it shows the method signature upon usage. How do I disable this feature? Here's an example of a method's ...
G.S's user avatar
  • 10.6k
323 votes
9 answers
113k views

Ignore a folder in search results

I'm searching for a string and getting matches in a source folder, and a build folder (file in source gets copied to build during build). I do not need the build folder result. Vim has wildignore ...
Eric Francis's user avatar
  • 23.6k
322 votes
13 answers
273k views

IntelliJ IDEA generating serialVersionUID

How do generate this value in IntelliJ IDEA? I go to Settings -> Errors -> Serialization issues -> Serializable class without ‘serialVersionUID’, but it still doesn't show me the warning. My class ...
user avatar
321 votes
2 answers
75k views

How to increase the maximum number of opened editors in IntelliJ?

I am building a grails-app with IntelliJ 9.0 and I am a huge fan of the CTR+TAB shortcut that switches between active editors. However, by default, IntelliJ keeps ONLY 10 active editors opened at the ...
fabien7474's user avatar
  • 16.4k
318 votes
6 answers
116k views

Disable IntelliJ indexing on specific folder

In my project, I have a .deploy folder which is created/updated when I deploy my app locally. Is it possible to disable indexing on that folder? Everything slows down whenever I deploy and it's really ...
Marcin Szymaniuk's user avatar
312 votes
17 answers
330k views

IntelliJ Organize Imports

Does IntelliJ have an Organize Imports feature similar to that in Eclipse? What I have is a Java file with multiple classes missing their imports. Example: package com.test; public class Foo { ...
Steve Kuo's user avatar
  • 62.4k

1
2 3 4 5
872