Post/Code

HomeAboutUsesNow

IntelliJ Tips.

I have worked with various text editors throughout my career. I started out using Macromedia Dreamweaver, then moved onto Sublime Text and had a brief fling with Atomic before moving to Visual Studio Code. At work however, I often need to work in a Java IDE. For the first few years this meant NetBeans, however, over the past year it has meant IntelliJ IDEA. As such, I currently need to switch between VS Code and IntelliJ regularly.

Additionally, I use both on Windows and Mac, so it makes for a somewhat confusing scenario when it comes to keyboard shortcuts and menu options. The context switching can be a little annoying. Especially if you have spent a few days in one, only to switch over to the other and find that you don't even know the basic shortcuts.

In an attempt to improve my workflows on these editors, here are some IntelliJ tips:

Settings

The Settings panel in IntelliJ plays a big part in your development experience on IntelliJ, as such, it helps to get familiar with it. Hit CMD + , to open the Settings panel.

Here you can do things such as:

  • Setup External Tools to run .bat files
  • Setup (and learn) Live Templates (which are code snippets)
  • Setup File Watchers to run Prettier on save.
  • Install and manage Plugins

Unfortunately, Simple React Snippets from VS Code is not available on IntelliJ IDEA. I have seen that there are several React snippet plugins in addition to the built-in 'Live Templates'.

Here are some useful shorcuts:

  • Alt + Shift up/down to move lines up or down.
  • Double Shift to search everywhere.
  • Alt + Shift + F to search in file path.
  • CMD + F to search within a file.
  • Ctrl + CMD + G to find all occurences
  • Ctrl + V to open the VCS/Git panel
  • Emmets is built-in, so this is great!

Something I have noticed with IntelliJ is that, while it is a lot more integrated in so many ways. It is just that little bit slower than VS Code for most operations. This makes sense, but it is noticeable. For example, using Prettier on save with VS Code is practically instant. One IntelliJ it takes just that heartbeat longer. At first, I was not sure if it was working or not.

To be continued...