Archive for the ‘intellij’ Category

My favorite Free/Open Source Intellij Community plugins

July 28, 2016 Leave a comment

Diff zipped files in Intellij using “Archive” file type

September 23, 2015 Leave a comment

Some file types are really just zipped (or maybe gzipped) folders containing xml and/or other plaintext based files.

For example

  • *.epub e-books
  • OpenDocument files
  • Java source jar files
  • JEE web application archives (*.war)
  • Pentaho report files (*.prpt)

If you happen to have such files in a software project, and don’t want to treat them like opaque binary blobs, you need a tool that helps you to transparently unzip, act on and rezip them. Also you probably want to be able to diff them without resorting to commercial tools like BeyondCompare.

IntelliJ CE (Community Edition) supports archive diffs as part of its regular Comparing Files functionality. All you need to do is make sure the file extension of the file types you want to be treated as archives are accordingly registered in Settings – Editor – File Types.

The screenshot below shows *.war and *.jar registered as Archive file name patterns (by default) and *.prpt (Pentaho report files) as an example of a manually added pattern:


Configure Intellij to use default Eclipse Java import layout

August 12, 2015 Leave a comment

Eclipse and Intellij use different default layouts of Java imports. If used on the same project, Eclipse’s “Organize Imports” will compete with Intellij’s “Optimize Imports“.

To avoid distracting back-and-forth code changes, Intellij can be configured to match the default Eclipse behavior:

Go to File – Settings – Editor – Code Style – Java – Imports tab

Prevent on-demand imports (i.e. wildcards) by settings high count limits:

Define the imports layout (i.e. grouping and order) like this:

Java software engineering – reference resources

February 28, 2014 Leave a comment

Java remote debugging JVM options

February 17, 2014 Leave a comment

Java 5, 6, 7 and newer

The Java™ Platform Debugger Architecture (JPDA) supports certain JVM invocation options.

Usually this boils down to:

This will cause your JVM process to execute (suspend=n) and listen for a socket connection from a remote debugging client on port 4444.

Java 1.4

If you are for some terrible reason stuck on Java 1.4, then you must use the older approach like this:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4444


To enabled remote debugging for a Apache Tomcat on Windows, create bin\setenv.bat in your Tomcat installation, with this content:
set "CATALINA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=4444"

Intellij configuration

Add a debug configuration via Run menu:


Categories: coding, intellij, java Tags: ,

Using libgdx for cross-platform app development

January 28, 2014 7 comments

I am looking for a framework that allows me to develop modern apps (mobile, web, desktop) all from one Java codebase. I prefer Java because I know it very well, it is already cross-platform and a statically typed language that allows IntelliJ, Eclipse and Netbeans to be better than any dynamically typed scripting language editor could ever be.

Currently my favorite is libgdx. I am planning to use it with IntelliJ Community Edition and with Maven.

By using RoboVM, libgdx even supports iOS.

For user input (forms) libgdx provides the scene2d.ui widgets. I hope that will be sufficient for most of my UIs. Now I just have to get OpenGL to work on my Linux box …

Categories: apps, games, intellij, java, maven Tags: ,

Use system proxy settings in IntelliJ IDEA

November 26, 2013 Leave a comment
  1. Close any running IntelliJ IDEA instances
  2. Add this line to your file:
  3. Start IntelliJ, go to File – Settings – HTTP Proxy, select “Auto-detect proxy settings”.
Categories: intellij, java