Manjaro Linux使用VSCode的坑及解决方案

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即可

你可能感兴趣的:(Linux)