Skip to main content
The 2024 Developer Survey results are live! See the results

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.

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 ...
ligi's user avatar
  • 39.3k
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 ...
Gregory Orlov's user avatar
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 ...
Jill Clover's user avatar
  • 2,298
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 ...
Muhammad Muzammil's user avatar
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 ...
Daniele Segato's user avatar
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'...
DemoniacDeath's user avatar
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 ...
traxium's user avatar
  • 2,726
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 ...
Chris Thompson's user avatar
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 ...
martin treurnicht's user avatar
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 ...
tonisives's user avatar
  • 2,410
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 ...
u17's user avatar
  • 2,814
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 ...
user1264903's user avatar
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 ...
daniel_c05's user avatar
  • 11.5k
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 ...
drJava's user avatar
  • 777
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 ...
Clarice Bouwer's user avatar

15 30 50 per page
1
2 3 4 5
1016