1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WinMergeで差分が出た行のみ抽出

Posted at

やり方

たとえば比較結果が下記の時。
image.png

表示 ⇒ Diffコンテキスト 。
0行を選択。
image.png

すると 差分が出た行だけ に絞ってくれる。
image.png

結果を全選択して、コピーすれば…
image.png

テキストエディタに張り付けもできる。
image.png

Diffコンテキストの『〇行』というのは 『差分の前後〇行まで含めて表示』 という意味。

『1行』に設定すれば下記になる。
image.png

純粋な差分行だけじゃなくて、前後何行かも含めて表示してほしい といった時は1行以上にすると便利。

参考サイトさん

バージョン

Windows 10 Pro 22H2 OSビルド 19045.2788
WinMerge Version 2.16.20.1

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?