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即可
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章