Open ucan-lab opened 6 years ago
Command + Shift + P >Sort Lines Ascending
Command + Shift + P
>Sort Lines Ascending
検索窓を表示する: Command + F 正規表現を使用する: Command + option + R 検索テキストボックスへ入力: (^.*$)\n(^\1$) 置換テキストボックスへ入力: $1 すべて置換: Command + option + Enter 重複行が多い場合は連打する
Command + F
Command + option + R
(^.*$)\n(^\1$)
$1
Command + option + Enter
参考リンク: 連続した重複行を1行に置換
1. 行を昇順に並び替え
Command + Shift + P
>Sort Lines Ascending
2. 正規化で重複している行を削除
検索窓を表示する:
Command + F
正規表現を使用する:Command + option + R
検索テキストボックスへ入力:(^.*$)\n(^\1$)
置換テキストボックスへ入力:$1
すべて置換:Command + option + Enter
重複行が多い場合は連打する