Skip to main content

Code Style

The Essential Plugins for JetBrains Idea

JetBrains Idea is my favorite IDE and I love it! It has allthe necessary features for java/kotlin developer out-of-the-box. Even in Community Edition you’ll find a lot of them! Difference between Community and Ultimate editions is with a set of plugins from JetBrains available. Native plugins are well tested and work like a charm, in contrast with Eclipse, where you have to do install/configure some extra plugins before you can start coding. I mean maven integrations (.m2eclipse). For commercial plugins there are some free alternatives e.g. Database Navigator for database support. There are some more free plugins useful both for Community and Ultimate editions. Here is my list: Docker Integration BashSupport if you need to write Bash scripts. Line Sorter - for sorting file contents. Markdown – the Markdown language support. Regex Tester – RegExp editor/tester. SonarLint helps you detect and fix quality issues as you write code. Visual VM Launcher to start your application from Idea with JVisualVM attached. PlantUML Integration – Draw and preview PlantUML diagrams in IDEA Database Navigator Database management (useful IDEA for Community editiion) There are hundreds of plugin for IDEA_Community Edition and IDEA Ultimate available in the plugin repository. I am sure you can add some plugins you love to this list.

Useful Code Templates for Jetbrains Idea

Jetbrains Idea is a perfect IDE (sorry, Eclipse fans). But, like every tool, sometimes it needs some customization to fit your needs. Today I want to show how to adjust it’s code-generation templates.

When you generates a new class or method using Idea, it creates one using predefined templates. You may modify that template in “Settings -> File and Code templates” section.

Modifying file

Give Good Names for Your Threads

When configuring executors in multithreaded application, do not forget to assign names to your threads. It simplifies later profiling a lot, when you see a meaningful thread names in your profiler. For example, you may use CustomizableThreadFactory from SpringFramework for that.