Manjaro Linux使用VSCode的坑
1.ENOSPC: System limit for number of file watchers reached
不解決這個問題,我看你怎麼用
cd /etc/sysctl.d/
sudo vim 50-max_user_watches.conf
#修改內容fs.inotify.max_user_watches = 524288
sudo sysctl -p --system
2.manjaro使用VSCodeopen in browser
無法設置chrome
默認打開
vim ~/.vscode/extensions/techer.open-in-browser-2.0.0/out/config.js
#修改內容,自行覈對 就是把原來的google-chrome修改爲google-chrome-stable
const chromeItem = {
description: "Windows, Mac, Linux",
detail: "A fast, secure, and free web browser built for the modern web",
label: "Google Chrome",
standardName: platform === 'win32'
? 'chrome'
: (platform === 'darwin'
? 'google chrome'
: 'google-chrome-stable'),
acceptName: ['chrome', 'google chrome', 'google-chrome', 'gc', '谷歌瀏覽器','google-chrome-stable']
};
#還不行,在VSCode中settings.json中修改
"open-in-browser.default": "google-chrome",
重啓VSCode即可