ucan-lab / tips

5 stars 0 forks source link

VSCode 重複行の削除 #10

Open ucan-lab opened 6 years ago

ucan-lab commented 6 years ago

1. 行を昇順に並び替え

Command + Shift + P >Sort Lines Ascending

2. 正規化で重複している行を削除

検索窓を表示する: Command + F 正規表現を使用する: Command + option + R 検索テキストボックスへ入力: (^.*$)\n(^\1$) 置換テキストボックスへ入力: $1 すべて置換: Command + option + Enter 重複行が多い場合は連打する

ucan-lab commented 6 years ago

参考リンク: 連続した重複行を1行に置換