无法在 IntelliJ 中键入单括号或圆括号

Mr.*_*bot 4 clojure intellij-idea

我有这个代码:

    (defn ^:dev/after-load mount-root []
      (re-frame/clear-subscription-cache!)
      (reagent/render [views/main-panel]
                      (.getElementById js/document "app")))
Run Code Online (Sandbox Code Playgroud)

在 IntelliJ 中,我想复制第三行,然后更改它。复制有效,但代码无法编译,因为我需要在代码块的末尾添加一个额外的单右括号:

    (defn ^:dev/after-load mount-root []
      (re-frame/clear-subscription-cache!)
      (reagent/render [views/main-panel]
      (reagent/render [views/second-panel] ;; duplicated line
                      (.getElementById js/document "app"))) ;; now missing closing parentheses
Run Code Online (Sandbox Code Playgroud)

在 IntelliJ 中,您无法在代码中添加单括号或圆括号,那么我如何复制该行并更新代码,以便它不会引发 linting 错误/编译?

Mr.*_*bot 7

我在这个问题中找到了答案。

\n\n

设置。Use Structural EditingNone

\n\n

IntelliJ\xe2\x86\x92Preferences\xe2\x86\x92Editor\xe2\x86\x92General\xe2\x86\x92Smart Keys\xe2\x86\x92Clojure

\n