imn1
V2EX  ›  问与答

求推荐文本对比工具

  •  
  •   imn1 · Oct 20, 2016 · 4148 views
    This topic created in 3693 days ago, the information mentioned may be changed or developed.
    Linux ,独立软件或 vscode/sublimetext 插件

    比较不仅限于程序代码,左右屏,不改变顺序把相同的行对齐,带行号更佳
    希望能智能一点,不仅单独的行,最好能附近几行(代码块、段落)一起“考虑”

    当然是需要可以同时编辑的
    13 replies  •  2016-10-21 04:13:13 +08:00
    leopku
    leopku
    Oct 20, 2016❤️1
    1
    带 X 推荐 kdiff3 、 meld

    不带 X 的话, vimdiff 就很不错
    imn1
    imn1
    OP
    Oct 20, 2016
    2
    @leopku
    试了一下
    kdiff3 是 kde 的,安装时提示要装一大堆 kde 支持共 200+MB …… pass
    meld 只是按行号区别的,不能对齐,更不能同步滚动了,某一个文件第一行增加一句注释,它就认为后面所有行都不同了,算比较“弱智”的工具
    lovedebug
    lovedebug
    Oct 20, 2016❤️1
    3
    用过很多 最后还是回归了 beyond compare
    Intellij idea 自带的也能比较文本
    whatot
    whatot
    Oct 20, 2016❤️1
    4
    @imn1 meld 我们感觉用的不是同一个东西,我这里的表现与你说的刚好相反
    imn1
    imn1
    OP
    Oct 20, 2016
    5
    @whatot
    @leopku
    好吧,是我不会用……

    打开两个 csv ,一个逗号分隔,一个 tab 分隔,文字内容 90%相同, meld 认为全部不同
    看样子我要先改 format 相同才能比较
    Trim21
    Trim21
    Oct 20, 2016 via Android❤️1
    6
    jet brains 的 IDE 里面带的那个 compare ?
    answeryou
    answeryou
    Oct 20, 2016❤️1
    7
    Beyond Compare
    clino
    clino
    Oct 20, 2016 via Android❤️1
    8
    beyong compare +1
    terence4444
    terence4444
    Oct 20, 2016 via iPhone❤️1
    9
    Notepad++ 的 compare 插件就可以
    imn1
    imn1
    OP
    Oct 20, 2016
    10
    @terence4444
    没看到正文第一个单词么?
    cyr1l
    cyr1l
    Oct 20, 2016 via iPhone❤️1
    11
    如果你有 Jet brain 家的 IDE 的话,可以命令行执行 IDE diff 命令,比如

    webstorm diff file1 file2
    kaneyuki
    kaneyuki
    Oct 20, 2016❤️1
    12
    Beyond Compare ,二进制用的 araxis merge
    terence4444
    terence4444
    Oct 21, 2016 via iPhone
    13
    @imn1 没有恰到好处直接从第二行开始看了…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 05:40 · PVG 13:40 · LAX 21:40 · JFK 00:40
    ♥ Do have faith in what you're doing.