2016-05-31 49 views
1

如何在记事本++ 例如值的另一个替换列值的列的另一列替换值的列,比方说,我有文件1项内容如下如何用记事本+价值

name2.address2.age.location 
name3.address5.age.location 
name1.address1.age.location 
name4.address4.age.location 

和我想从另一个文件

A123 
234 
5678 
adafsffsafasfa 

让我更换内容是这样的

name2.A123.age.location 
name3.234.age.location 
name1.5678.age.location 
name4.adafsffsafasfa.age.location 
用新值来代替地址栏

我尝试了Alt + c和alt + shift组合,但这并没有帮助。 谢谢你的时间。

+0

也许写一个使用'regex'来做同样的小程序? – CinCout

+1

请参阅:http://stackoverflow.com/questions/19321916/notepad-how-do-i-insert-a-column-of-data –

+0

我想到的Cinout,正则表达式将在单一值上工作。 Ton Plooij,该解决方案正在将单个值粘贴到单列中。虽然我想用多个值替换单列。 – CppLearner

回答

1

我在玩耍时,意外地发现了解决问题的方法。 要替换列按照以下步骤操作:

1. Select the column using "`Shift + Alt + Down`" key combination 
2. Then delete the column by pressing the "`Delete`" key. 
3. Select "new" column using "`Shift + Alt + Down`" key combination 
4. Do the `drag` while holding down the `Alt` key. 

附件为更清晰的动画。 enter image description here Alt drag甚至可以用于移动列位置以及