IntelliJ IDEA - 多个插入符号? [英] IntelliJ IDEA - multiple carets?

查看:51
本文介绍了IntelliJ IDEA - 多个插入符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我必须编写 Java 类,我需要在其中定义多个相同类型的字段.例如,我知道我需要在接下来的 4 行中复制 private final String.

Sometimes I have to write Java class where I need to define multiple fields of the same type. For example, I know that I will need to duplicate private final String on the next 4 lines.

是否可以在 IntelliJ 编辑器中生成多个插入符号,以便我可以同时输入多行?

Is it possible to spawn multiple carets in IntelliJ editor, so I can type on mutliple lines at the sime time?

推荐答案

我认为列选择模式"可以帮助您.您可以在编辑器的上下文菜单中启用它.然后您可以选择多行并一次键入相同的文本.

I think "Column Selection Mode" could help you. You can enable it in the context menu in the editor. Then you can select multiple lines and type same text at once.

这篇关于IntelliJ IDEA - 多个插入符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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