ubuntu 安裝 配置vscode


一 安裝

 https://code.visualstudio.com/docs/setup/linux

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-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y code 

 

二 配置

恢復插件備份.如果直接重裝系統,都不用配置

如果換硬盤之類

安裝settings sync

按照提示操作即可

1. Upload Key : Shift + Alt + U
2. Download Key : Shift + Alt + D

 

為了避免

Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC

https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

 

sudo xed /etc/sysctl.conf

 

添加

fs.inotify.max_user_watches=524288

然后

sudo sysctl -p

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM