要在Ubuntu上安裝VSCode編輯器,請按照以下步驟操作:
打開終端(Ctrl + Alt + T)。
運行以下命令來下載并安裝VSCode的GPG密鑰:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code
現在您已經成功在Ubuntu上安裝了VSCode編輯器。祝您使用愉快!