最近開始嘗試寫 GoLand,寫的過程中,發現沒有一個好用的 IDE,在寫 go code 上,滿不方便的
尤其是,目前對於要如何找 API document 是有個滿大的困擾的

所以囉,就安裝了 JetBrains 的 GoLand 來試用。
因為,我習慣了用 vim 來編輯,就也是希望能在 GoLand 中,可以用 vim 的 keybinding

安裝好 plugin 後,就發現無法一直按著 h j k l 來移動
這對於一個 vim 的使用者來說,很不方便,就找找看變更的方式囉

修改的流程

  • 找到對應要修改的 identifier
    • $ cat /Applications/GoLand.app/Contents/Info.plist | grep -A 5 -B 5 -i BundleIdentifier
  • 修改設定
    • defaults write com.jetbrains.goland ApplePressAndHoldEnabled -bool false
  • 重啟 GoLand

Reference

Comments

2022-08-12