如何做多行编辑? [英] How to do multiple line editing?

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

问题描述

我想在eclipse中编辑多行,但是我找不到任何短片或插件。在Geany我只需按 ctrl + alt + up / down 我可以添加/编辑多行。 p>

也许这个例子可以解释我的意思:

  var text =我的名字; 
var addr =myaddr;
var age =myage;

我想将上面的文字编辑为:

  var my_text =myname; 
var my_addr =myaddr;
var my_age =myage;

上面的文本只是一个简单的例子,但有时我有很多行的字,编辑其前缀。

解决方案

alt + shift + < > A 到 切换块选择(在当前文本编辑器中切换块/列选择),这将允许您在eclipse中垂直写入,然后可以轻松






转到窗口 - >首选项。





查找绑定文本框被红色框包围。


I want to edit multiple lines in eclipse, but I can't find any short cut or Plugin. In Geany I just press ctrl+alt+up/down I can add / edit multiple lines.

Maybe this example can explain what I mean:

var text = "myname";
var addr = "myaddr";
var age = "myage";

I want to edit text above into:

var my_text = "myname";
var my_addr = "myaddr";
var my_age = "myage";

The text above is just a simple example, but sometimes I have many lines of words that I have to edit its prefix.

解决方案

Press alt + shift + A to Toggle block selection (Toggle block / column selection in the current text editor), this will let you write vertically in eclipse, then you can easily do this.


Go to Window->Preferences.

Find for binding in text box surrounded by red box.

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

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