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 错误/编译?
| 归档时间: |
|
| 查看次数: |
1381 次 |
| 最近记录: |