要在Ubuntu上安裝VSCode,您可以按照以下步驟進行操作:
打開終端(Ctrl+Alt+T)。
添加Microsoft的GPG密鑰,輸入以下命令并按下Enter鍵:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update
sudo apt install code
希望這可以幫助您安裝VSCode在Ubuntu上。