~設定WSL開發環境的筆記~

蔡茗名 [email protected]

本文件目的是紀錄自己依據微軟的文件介紹,在WSL平台上以虛擬作業系統Ubuntu,和習慣的文字編輯器Visual Studio Code,達成C++程式開發與驗證的過程。

本篇參閱文件來源

https://learn.microsoft.com/zh-tw/windows/wsl/

PART1 準備好Windows11

part1.png

PART2 安裝WSL(什麼是WSL?)

wsl --install

PART3 安裝虛擬作業系統Ubuntu、C++ compiler(g++)

part3.png

sudo apt update && sudo apt upgrade
sudo apt-get install g++

PART4 安裝使用文字編輯器Visual Studio Code

(Ctrl+Shift+P 空格輸入Display 可以設定顯示語言改成繁體中文)

part4-1 安裝WSL延伸模組

part4.png

part4-2 試圖遠端連線至WSL

part5.png

part4-3 成功遠端連上WSL ,並進入寫程式的工作區

part6.png