分类 默认分类 下的文章

1. 软件简述

官网:[https://www.scootersoftware.com/]

Scooter Software推出的文件比较工具,主要用途是对比两个文件夹或者文件,并将差异以颜色标示。

Beyond Compare是一款著名的文件比较工具,它支持文件夹、文件、FTP站点的比较,并且可以高效地找出不同点。此外,Beyond Compare还可以进行文本编辑、代码合并、文件同步等功能,是程序员进行版本控制和开发过程中必不可少的工具之一。

Beyond Compare的界面简洁、易用,一般用户很快就能熟悉。左右两个窗口显示文件的内容,可以通过不同的颜色和图标表示文件不同的状态。

用户可以自定义比较规则,比如仅比较文件大小、仅仅比较文件名等,而且Beyond Compare的比较速度非常快,在文件比较、代码合并等操作中得到广泛应用。

它是目前功能最全面的文件对比工具,当然这款软件肯定是收费的。

提示:Beyond Compare为收费软件,提供有30天试用版,国内经销商提供的参考价格为259元(标准版)、469元(专业版)。

2. UI截图

image-20250322110236035.png

3. 目录比较

image-20250322112829955.png

4. 文本文件对比

image-20250322112907554.png

5. Excel文件对比

v2-0b791bb45b32d28e389e1b5ded423431_1440w.jpg

总的来说,Beyond Compare是一款非常强大的文件比较工具,对于程序员和开发者非常实用。它不仅可以快速找出文件不同之处,还可以进行文件编辑、代码合并、文件同步等功能,方便用户在开发过程中快速迭代。

原文地址: [https://zhuanlan.zhihu.com/p/634642572]

一、环境准备

  1. 下载mingw
    MinGW官网:https://www.mingw-w64.org/downloads/
    GitHub下载地址:https://github.com/niXman/mingw-builds-binaries/releases

    在下载页面找到MinGW-W64-builds关键字
  2. 将mingw路径添加到Path环境变量
    系统->高级系统设置->环境变量->用户或系统变量Path->"D:\software\mingw64\bin"
    安装验证

    PS C:\Users\tony> gcc -v
    Using built-in specs.
    COLLECT_GCC=D:\software\mingw64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=D:/software/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/14.2.0/lto-wrapper.exe
    Target: x86_64-w64-mingw32
    Configured with: ../../../src/gcc-14.2.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/buildroot/x86_64-1420-posix-seh-msvcrt-rt_v12-rev1/mingw64 --enable-host-shared --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-libssp --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev1, Built by MinGW-Builds project' --with-bugurl=https://github.com/niXman/mingw-builds LD_FOR_TARGET=/c/buildroot/x86_64-1420-posix-seh-msvcrt-rt_v12-rev1/mingw64/bin/ld.exe --with-boot-ldflags='-pipe -fno-ident -L/c/buildroot/x86_64-1420-posix-seh-msvcrt-rt_v12-rev1/mingw64/opt/lib -L/c/buildroot/prerequisites/x86_64-zlib-static/lib -L/c/buildroot/prerequisites/x86_64-w64-mingw32-static/lib  -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc'
    Thread model: posix
    Supported LTO compression algorithms: zlib
    gcc version 14.2.0 (x86_64-posix-seh-rev1, Built by MinGW-Builds project)
  3. 安装vscode
  4. 安装vscode插件
  5. C/C++ for Visual Studio Code
    2025-02-25T02:12:04.png
  6. VSCode C/C++ Runner
    2025-02-25T02:12:26.png
  7. 编写helloworld.c

    #include <stdio.h>
    
    int main(){
     printf("Hello World! \n");
    
     return 0;
    }
  8. 编译运行
    2025-02-25T02:14:28.png

简介

阿里云Maven中央仓库为阿里云云效提供的公共代理仓库,帮助研发人员提高研发生产效率,使用阿里云Maven中央仓库作为下载源,速度更快更稳定。

配置方法

1. Maven配置

打开 Maven 的配置文件(windows机器一般在maven安装目录的conf/settings.xml),在标签中添加 mirror 子节点:

<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

如果想使用其它代理仓库,可在节点中加入对应的仓库使用地址。以使用spring代理仓为例:

<repository>
    <id>spring</id>
    <url>https://maven.aliyun.com/repository/spring</url>
    <releases>
        <enabled>true</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

2. Gradle配置

在 build.gradle 文件中加入以下代码:

allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public/' }
        mavenLocal()
        mavenCentral()
    }
}

如果想使用 maven.aliyun.com 提供的其它代理仓,以使用 spring 仓为例,代码如下:

allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public/' }
        maven { url 'https://maven.aliyun.com/repository/spring/'}
        mavenLocal()
        mavenCentral()
    }
}