一 安装
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
sudo xed /etc/sysctl.conf
添加
fs.inotify.max_user_watches=524288
然后
sudo sysctl -p