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
15,233
questions with no upvoted or accepted answers
26
votes
1
answer
585
views
Android-Studio ( or IDEA in general ) refactor over multiple source sets
What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors - or now unit-tests and integration-tests. You can only have one active source-set that is ...
18
votes
1
answer
10k
views
How I can import Code Style from WebStorm to Visual Studio Code?
I want to share TypeScript Code Style settings. I can export them from File | Settings | Editor | Code Style | TypeScript in a JSON or XML format from WebStorm.
Is it possible to import the settings ...
18
votes
2
answers
20k
views
Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)"
I am setting up remote debugger in IntelliJ on Mac. I followed the template without any modification. Then I click the "Debug xxx" button. It shows
"Error running 'Remote Debugger': Unable to open ...
17
votes
1
answer
498
views
Debugger breakpoint hitting on the same line in file but of the different build variant while using lambdas
We have many different builds, flavors and dimensions in our project. But after updating to Android Studio 3.5 we noticed a strange behavior that when we create a breakpoint in some lambda of our file ...
16
votes
2
answers
2k
views
Plain Java library in Android Studio giving compile error inside the editor: Cannot access 'java.io.Serializable' which is a supertype of
I started working on an Android project in kotlin using clean architecture with a data and a domain layer, the domain layer is a plain java-library (no android dependencies)
This is the Domain module ...
15
votes
1
answer
3k
views
Gradle dependency autocompletion in IntelliJ IDEA
I've been searching around for a while and can't seem to find anything regarding this issue. I'm new to Java in general and for the last half a year I've been learning Maven. I use IntelliJ IDEA and I'...
15
votes
1
answer
908
views
IntelliJ IDEA / WebStorm: how to make fetch keyword (XMLHttpRequest analogue) to be recognized?
It seems WebStorm 2016.3.1 knows nothing about fetch API. It marks fetch
keyword as an error in JavaScript. As a workaround I add /* global fetch */ comment at the top of each JavaScript file where I ...
15
votes
4
answers
2k
views
Can I stop Intellij from splitting string literals when running the code formatter?
More or less exactly what the title says. When I cmd + f, it formats the code according to the settings for the project. One of those settings is the right margin. The problem is it will split string ...
15
votes
3
answers
3k
views
android studio not downloading sources and javadoc
Using Android studio version 0.1.3 and version 0.4.2 of the android gradle plugin. I noticed that its not pulling in sources for any of my dependencies. i used a third party android plugin before on ...
14
votes
0
answers
1k
views
How to hide IntelliJ/Android studio Compose code/split/design bar?
The code/split/design bar takes a full code line of height, but I never use it.
In an Android project it is also visible for non Compose .kt files, which is completely unnecessary.
Is there a way to ...
14
votes
1
answer
3k
views
What data access do JetBrains third-party plugins have?
I'm considering installing a third-party plugin inside IntelliJ IDEA to add support for another programming language. I have to accept the following message. What access to my personal data does the ...
14
votes
1
answer
3k
views
Display 4-space indent as 2-space in Intellij IDEA
Is it possible without any code modification? Making a tab would insert 4 spaces, but in editor it would look like 2. I think it might be useful to display code from different libraries with the same ...
14
votes
1
answer
10k
views
Android Studio does not compile when using deprecated API
I am having issues compiling and running my application on Android Studio.
The problem: It doesn't like that I am using deprecated APIs. (from gradlew compileDebug --stacktrace. Full stacktrace here
...
14
votes
3
answers
7k
views
Is there any way to save variable and its values during debugging in intellij?
I am struggling with an error. I cannot find it. Is there a way to compare the debugging results before and after a change in intellij. Other solutions will be also welcomed.
I am explaining my ...
14
votes
1
answer
4k
views
Oh-my-zsh Powerline theme terminal colors are not displaying correctly on IntelliJ
I am using the Powerlevel9k theme on oh-my-zsh which looks right in the terminal (Terminator and Terminal) and Visual Studio Code on Ubuntu 18.04 LTS.
In IntelliJ (Community 2018.1.5) however, the ...