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
43,559
questions
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?
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?
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 ...
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. ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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.
...
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?
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 ...
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'...
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 ...
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 ...
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 ...
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 ...
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 ...
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)
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 ...
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?
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)
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?
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 ...
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 ...
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 ...
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 ...
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
...
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 ?
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?
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, ...
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?
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 ...
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 ...
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:...
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 ...
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?
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 ...
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
...
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/...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 {
...