What & How & Why

这是本文档旧的修订版!


Introduction

Notes for Chapter 2


平台支持

  • Win 11
  • Ubuntu 22.04.1 LTS

Windows Setup

安装 VS-code

  • 安装时,确认 Add to Path checked
  • 常用快捷键

# Debug & Run
Ctrl + Shift + D
# Extensions
Ctrl + Shift + X

常用插件
  • C/C++ Extension Pack
  • Cmake / Cmake Tools

编译器版本

  • Visual C++ Compiler (Microsoft Visual C++ Redistributable for Visual Studio 2022)
    • 需要运行 Developer Command Prompt(DCP)
    • 在 DCP 中定位到项目目录,使用 code . 命令。该命令会从当前目录打开 VScode,并使用 MSVC 作为 VScode 的编译环境。

安装 CMake