2016-05-31 20 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甚至可以用於移動列位置以及