How to display hidden characters by default (ZERO WIDTH SPACE ie. &#8203)

I just lost part of my weekend because of this … joker – zero width space. I just used some snippets from google groups and didn’t recognize that there are doubled characters, because Idea (11) didn’t show them, which was causing problems with parsing config file of my app… I discovered it accidentally in vi. … Read more

Java “lambda expressions not supported at this language level”

I was testing out some new features of Java 8 and copied the example into my IDE (Eclipse originally, then IntelliJ) as shown here Eclipse offered no support whatsoever for lambda expressions, and IntelliJ kept reporting an error Lambda expressions not supported at this language level I would like to know if this is a … Read more

How do I activate a Spring Boot profile when running from IntelliJ?

I have 5 environments: – local (my development machine) – dev – qc – uat – live – staging I want different application properties to be used for each environment, so I have the following properties files each which have a different URL for the datasource: – application.properties (containing common properties) – application-local.properties – application-dev.properties … Read more

How to configure “Shorten command line” method for whole project in IntelliJ

When I run tests I get the error “Command line is too long”. It works if I set the “Shorten command line” method in the Run/Debug configuration to “JAR manifest” for the specific method or class, but how do I set it for the whole project or is there an IDE global setting for it? … Read more

How to add directory to classpath in an application run profile in IntelliJ IDEA?

I’m trying to add a directory to the classpath of an application run profile If I override by using -cp x:target/classes in the VM settings, I get the following error: java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain Any idea on how to add a directory to the classpath for my project? 8 Answers 8