git安装目录\Git\libexec\git-core\git-gui.tcl的 proc create_common_diff_popup 下追加:

$ctxm add command \
        -label [mc "Open With Sublime"] \
        -command {eval exec {"sublime安装目录/Sublime Text 2/sublime_text.exe"} $current_diff_path &}
    $ctxm add command \
        -label [mc "Copy Current Path"] \
        -command {
            clipboard clear
            clipboard append \
                -format STRING \
                -type STRING \
                -- $current_diff_path
        }
    lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state]

  

替换红色标记的目录即可

Vs Code同理,将Sublime路径替换为Vs Code安装路径即可

相关文章:

  • 2022-12-23
  • 2021-09-11
  • 2021-10-08
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-12-17
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-04-21
相关资源
相似解决方案