0
1

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.

【Windows向け】VisualStudioの差分ツールにWinMergeを使う

Last updated at Posted at 2023-09-30

環境

  • Windows 10 Pro
  • VisualStudio 2022

参考記事

Gitのグローバル設定で差分ツールを変更

  • .gitconfigファイル(git定義ファイル)に以下の内容を追記して保存
# 差分ツールの設定(WinMerge)
[diff]
    tool = WinMerge
[difftool]
    prompt = true
[difftool "WinMerge"]
    path = C:/Program Files (x86)/WinMerge/WinMergeU.exe
    cmd = \"C:/Program Files (x86)/WinMerge/WinMergeU.exe\" -f \"*.*\" -e -u -r \"$LOCAL\" \"$REMOTE\"
# マージツールの設定(WinMerge)
[merge]
    tool = WinMerge
[mergetool]
    prompt = true
[mergetool "WinMerge"]
    path = C:/Program Files (x86)/WinMerge/WinMergeU.exe
    cmd = \"C:/Program Files (x86)/WinMerge/WinMergeU.exe\" -e -u \"$LOCAL\" \"$REMOTE\" \"$MERGED\"

変更内容が反映されているか確認

  • VisualStudioを再起動後、[ツール]→[オプション]をクリック
    image.png
    image.png

  • [ソース管理]→[全般]を見ると以下のようにWinMergeが表示されていることを確認
    image.png

「Visual Studioを使用する」は絶対に押さないでください
※仮に「Visual Studioを使用する」のリンクを押した場合は以下の記事で修正してください

0
1
1

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?