Windows开发环境搭建指南

Insider Lv1

通用软件推荐

  • QQ

  • 微信

  • QQ音乐

  • PotPlayer 视频播放器

  • Bandizip 解压缩工具

  • Sublime Text 记事本

  • PowerToys 系统增强工具

    • 速览 选中文件后Ctrl + 空格,左右键选择文件,非常好用,尤其是我这种将Banizip设置成双击解压的人,预览压缩包太香了,预览多文本也非常好用
    • 查找鼠标 设置成快速晃动就能圈出来,特别好,经常在白色页面找不到鼠标,这个功能系统级解决了这一问题
    • PowerRename 正如其名,强大的重命名工具,资源管理器中选中多文件,就能右键进行多文件重命名,支持正则表达式
    • 还有很多强大的功能,Host编辑器,环境变量编辑器,简直是程序员福音,即便我有SCOOP的情况下
  • Pot 截图翻译工具 使用QQ截图+上传GPT总结 更加高效

  • NDM 多线程下载工具

  • Chrome 浏览器

  • 图吧工具箱

    • Everything 文件搜索工具
    • Geek 软件卸载工具
    • Disk space analysis tool 磁盘分析工具——一般用于分析磁盘/或者分析项目资源占用分布
    • GifCam 录制GIF工具
  • OBS 视频录制/直播推流工具

  • Office 办公三件套(没有还真不行😭)

  • Clash 科学上网工具—-版本经常变化,不提供具体地址了

程序员专栏

Scoop 安装 —— 仅用于管理各种环境

1
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
1
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

安装Git

1
scoop install git

添加源

1
scoop bucket add extras versions nerd-fonts java

安装环境

  • 常用工具—-sudo/grep/netcat等

    1
    scoop install sudo grep netcat
  • Python——miniconda3

    1
    scoop install miniconda3
    • 初始化conda——根据使用的shell替换powershell

      1
      conda init powershell
  • NodeJs

    1
    scoop install nodejs-lts
  • mingw-winlibs-llvm-ucrt 工具链———包含Gcc/Clang/Clangd/LLVM等等,简单说就是windows平台专用的C++编译工具

    来自Winlibs的介绍

    In short: it’s a free C and C++ compiler for Microsoft Windows.

    GCC  (GNU Compiler Collection) is a free and open source compiler for C and C++ (and other languages like Objective-C, Fortran, D).

    MinGW-w64  is a free and open source C library for targetting Windows 32-bit and 64-bit platforms.

    The combination of these results in a free C/C++ compiler for Windows.

    Even though GCC and MinGW-w64 can be used on other platforms (e.g. Linux) to generate Windows executables, the WinLibs project only focusses on building versions that >run natively on Windows.

    Also some additional tools are added, including:

    • GDB  - the GNU Project debugger
    • GNU Binutils  - a collection of binary tools
    • GNU Make  - a tool which controls the generation of executables and other non-source files
    • Yasm  - The Yasm Modular Assembler Project
    • NASM  - The Netwide Assembler
    • JWasm  - A free MASM-compatible assembler
    • LLVM/Clang/LLD/LLDB  - The LLVM Compiler Infrastructure

    This is a standalone build, which means this download offers a complete compiler environment for Windows.

    In the future WinLibs plans to also release binary packages of many open source libraries and applications built with this compiler.

    Click here  to see the philosophy and design decisions behind winlibs.com .

    1
    scoop install mingw-winlibs-llvm-ucrt
  • Rust

    1
    scoop install rustup
  • Mysql

    1
    scoop install mysql
  • MongoDB

    1
    2
    scoop install mongodb
    # scoop install mongosh #mongodb命令行 选择性安装
  • Redis

    1
    scoop install redis
  • ADB工具

    1
    scoop install adb
  • 字体安装——我使用的是JetBrainsMono-NF-Mono

    1
    scoop install JetBrainsMono-NF-Mono
  • JDK

    • 这个不给具体命令了,每个人需要的版本不同

      当安装多个版本JDK时,进行版本切换只需要scoop reset 对应版本名称

      例如我这里安装了openjdk11/17
      https://s2.loli.net/2024/06/26/aSqyrT6EB1AeXFx.png

      使用openjdk11时,只需要scoop reset openjdk11即可
      https://s2.loli.net/2024/06/26/XF68uiNmMHYpgfq.png

  • cmake ——— 编译工具

    1
    scoop install cmake
  • vcpkg ——— Windows打包编译工具

    1
    scoop install vcpkg
  • Android-clt ——安卓开发使用

    1
    scoop install main/android-clt

WSL

Windows Subsystem for Linux

查看发行版本wsl -l -o

安装指定发行版本Linux wsl --install -d <发行版本名称>

删除指定发行版本,前往设置->应用->找到<发行版本>->卸载

卸载wsl wsl --uninstall 卸载前请先卸载所有发行版本,否则发行版本将保留至硬盘中

在Windows中使用Linux的工具只需要wsl 启动即可

例如使用linux 中的 grep

1
echo "...." | wsl grep ""
  • Title: Windows开发环境搭建指南
  • Author: Insider
  • Created at : 2024-06-17 03:45:14
  • Updated at : 2024-06-30 04:30:27
  • Link: https://blog.katetseng.icu/2024/06/17/Windows开发环境搭建指南/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments