Questions tagged [intellij-15]

Use this when developing with the IntelliJ IDEA 15 IDE for Java.

IntelliJ is the newest of the JetBrains IntelliJ IDEA Java IDE family.

This adds many new features, such as lambda debugging, force return, and an improved UI.

Learn more at What's new in IntelliJ IDEA 15.

191 questions
163
votes
4 answers

How do I keep IntelliJ from closing my Editor Tabs automatically?

When opening more than 10 Editor Tabs, IntelliJ automatically closes my least used Tab each time I open a new Tab. How can I increase this limit? More recent IntelliJ settings are accessed differently than older versions.
Heather92065
  • 7,333
  • 6
  • 31
  • 39
101
votes
3 answers

IntelliJ collapsing single line methods

Since I've updated my version of intelliJ (14.x to 15.x) it has started automatically collapsing single line methods in the Java editor: Previous version: public void setContext(SecurityContext context) { this.context = context; } Latest…
StuPointerException
  • 7,117
  • 5
  • 29
  • 54
77
votes
7 answers

Select current line in intellij

Is there any way to select the whole line at caret in IntelliJ 15? I know you can select the current word (ctl + w), go to beginning/end of line but I can't find a current line selection feature.
Dodi
  • 2,201
  • 4
  • 30
  • 39
73
votes
2 answers

VS Code Regex find and replace with lowercase, use \l or \L if possible

Is there a way to do a find and replace (regex) all uppercase characters in the matching strings with lowercase ones? Preferably in VS Code or IntelliJ I already have my regex ready. Edit: To be clear I already know who to find the matches. But…
Gísli Freyr Svavarsson
  • 2,275
  • 2
  • 18
  • 13
58
votes
12 answers

Intellij Annotate Option Grayed Out

I am trying to look at who changed a line in Intellij 15. I know I can use git blame but I want to learn how to do it correctly in intellij. I am right clicking on the line numbers on the file but when I get the context menu the annotate option is…
ford prefect
  • 7,096
  • 11
  • 56
  • 83
52
votes
1 answer

Is it possible to change the console font size in IntelliJ IDEA

Is it possible to change the console font size in IntelliJ IDEA? I changed the actual text size under Settings > Editor > Font, but "console/terminal" font is too small. I'm using Community Edition 15
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
40
votes
2 answers

Run Gradle test and not Junit test in IntelliJ IDEA 15 when choosing configuration type to run with

I updated to Intellij 15.02 from 14 and wanted to run my tests using Gradle not JUnit, but I'm not getting the options anymore like the image you see here. I want to be able to choose configuration type. The thing that is happening now when I run a…
SamTheGoodOne
  • 1,395
  • 2
  • 12
  • 19
29
votes
5 answers

Is possible open the same project on two instances of Intellij IDE

I have a distributed project and I need debug two nodes of my app on the same time. For this I wish open two instances of Intellij, it is possible ?
Rafael Pacheco
  • 472
  • 1
  • 5
  • 15
25
votes
2 answers

Is it safe to delete previous versions of IntelliJ?

I am facing an issue of recovering free disk space in my main partition. I found these files in my Users folder. These folders named as previous versions of IntelliJ allocate 1.5GB in my disk space. Is it safe to delete these files?
Sahan Amarsha
  • 2,176
  • 2
  • 14
  • 23
23
votes
2 answers

How to use -parameters javac option in intellij?

I have this all working in eclipse and am trying to do so in intellij now. I opened settings {command and comma} then went to Build, Execution and Deployment and clicked Compiler and in Shared Build Process VM Options I typed in "-parameters" but…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
22
votes
2 answers

Why "Numeric overflow in expression" warning occurs

Using intellij 15.0.3 + Java 8u65... lower = System.currentTimeMillis(); long upper = lower + 31536000000L; //add a year-ish Works fine. But if I do: lower = System.currentTimeMillis(); long upper = lower + (1000L*60*60*24*365); Intellij now…
Manish Patel
  • 4,411
  • 4
  • 25
  • 48
19
votes
4 answers

IntelliJ IDEA: ignore trivial methods in code coverage

In IntelliJ IDEA 15.0.2 how can I ignore trivial getters and setters (trivial methods) during test coverage measurement? // should be measure public void complex() { fancy(); interesting(); dropDatabase(); } // should not be…
michaelbahr
  • 4,837
  • 2
  • 39
  • 75
17
votes
1 answer

Intellij Maven Repository self signed certificate, ssl error

In intellij (15.0.4) under settings->Maven->Repositories I get an error when clicking update on the companies repositories. org.apache.maven.wagon.TransferFailedException: sun.security.validator.ValidatorException: PKIX path building failed:…
Benno
  • 289
  • 1
  • 3
  • 10
17
votes
2 answers

Different consoles for stderr and stdout in Intellij IDEA?

Stderr and stdout messages appear in the same console log in IntelliJ IDEA (typically in black and in red). Is there a simple way to suppress either stderr or stdout messages or redirect the two different streams to different console windows?
Stefan Haberl
  • 9,812
  • 7
  • 72
  • 81
17
votes
2 answers

How to import .XML code style into IntelliJ Idea 15

I want to use a specific code style in my editor defined in an XML file, which looks something like this:
b3000
  • 1,547
  • 1
  • 15
  • 27
1
2 3
12 13