如何做多行编辑? [英] How to do multiple line editing?
问题描述
也许这个例子可以解释我的意思:
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屋!