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即可
  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值