IntelliJ IDEA编辑多行的方式 [英] IntelliJ IDEA way of editing multiple lines

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

问题描述

我已经在TextMate中看到了这一点,我想知道是否有办法在IDEA中做到这一点.

I've seen this done in TextMate and I was wondering if there's a way to do it in IDEA.

说我有以下代码:

 leaseLabel = "Lease";
 leaseLabelPlural = "Leases";
 portfolioLabel = "Portfolio";
 portfolioLabelPlural = "Portfolios";
 buildingLabel = "Building";

将'+"foo"'附加到每一行的最佳方法是什么?列模式将不起作用,因为行没有在右侧正确对齐...除非有一种简单的方法可以使文本右对齐:P

What is the best way to append '+ "foo"' to every line? Column mode won't work since the lines are not correctly aligned on the right side... unless there is an easy way to right justify the text :P

推荐答案

自IntelliJ IDEA 13.1以来,就可以编辑多行.

Since Idea IntelliJ IDEA 13.1 there is possibility to edit multiple lines.

使用:

Alt + Shift +鼠标单击

供选择.有关IntelliJ博客中的这一新改进的更多信息

for selection. More about this new improvement in IntelliJ blogpost here. Very useful feature.

这篇关于IntelliJ IDEA编辑多行的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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