无法在IntelliJ/Cursive中删除括号 [英] Can't delete Parenthesis in IntelliJ/Cursive

查看:126
本文介绍了无法在IntelliJ/Cursive中删除括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ/Cursive编写Clojure. 我发现擦除括号的唯一方法是完全擦除其中的内容,然后才可以删除括号. 例如,假设我有以下代码:

I'm using IntelliJ/Cursive to write Clojure. I found out that the only way to erase parenthesis is to totally erase the content inside them, and only then, the parenthesis can be deleted. For example, let's say that I have the following code:

(list)

,我只想删除左括号.一旦在开头的括号中按了退格键,IDE将忽略此行为.仅当我删除列表"一词时,括号才能删除.

and I want to delete only the opening parenthesis. Once I hit backspace on the opening parenthesis, the IDE ignores this act. Only when I erase the word "list", the parenthesis can be deleted.

有人知道如何解决吗?

Does anyone have any idea how to solve this?

推荐答案

来自文档:

默认情况下,启用Clojure代码的结构编辑功能.如果您不喜欢它,可以在设置→编辑器→常规→智能键→使用结构编辑中将其关闭.如果要快速打开和关闭它,可以使用屏幕底部状态栏中的小部件,也可以使用编辑→结构编辑→切换结构编辑样式行动.如果您发现自己做了很多事情,甚至可以为该操作分配快捷键.

Structural editing comes enabled for Clojure code by default. If you don't like it, you can turn it off at Settings→Editor→General→Smart Keys→Use structural editing. If you'd like to toggle it on and off quickly, you can use the widget in the status bar at the bottom of the screen, or you can use the Edit→Structural Editing→Toggle Structural Editing Style action. If you find yourself doing that a lot you can even assign a shortcut key to the action.

这篇关于无法在IntelliJ/Cursive中删除括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆