I have been using IntelliJ since I was a Java dev… Even though I barely written 50 lines of Java since 2015, I have been using IntelliJ
for all sort of DevOps/Ops projects in the recent years for Jenkins, groovy, ansible, bash, Terraform, etc.
Recently I have been writing a lot of terraform code and IntelliJ support for Terraform is just amazing, finding unused/uninitialized variables, refactoring variable name, just to name a few.
There was only one issue. As in ops world you do lots of terminal work, you don’t really want to leave your editor to switch back and forward to iTerm and IntelliJ, even thought I could use zsh in embedded terminal, one important think didn’t work: forward/backward.
After many attempts to make backward-word/forward-word to work in IntelliJ with zsh terminal I finally found a solution!
Just update your ~/.zshrc with:
bindkey "\e\eOD" backward-word bindkey "\e\eOC" forward-word
And yaay, it bloody works!