there are no packages available for installation插件安装问题和如何配置浏览器的快捷键

sublime text3 在安装插件时,有时候会莫名其妙的弹出如下所示的弹窗(之前遇到了,但写的时候不知道为什么我的又可以了,这个只是出现了这个问题之后可以尝试的一个解决办法,图片就从网上找了一个),弹窗上面显示there are no packages available for installation,对于window系统主要是因为Tcp/IPv6造成的,如果遇到这种问题,可以打开网络和共享中心>>更改适配器设置>>选择连接网络的那个点击右键>>属性>>将IPv6前面复选框的小勾去掉,点击确定就可以了


最新安装的sublime text ,当需要使用浏览器打开的时候,需要点击右键,然后选择浏览器打开,而且在前端设计时我们有时候需要在多个浏览器查看,这样就很不方便,下面是其设置方法

在preferences>key Bindings-User里面复制下面的代码,但必须首先安装SideBarEnhancements插件才可以

application 对应的是浏览器的安装位置

[
  { "keys": ["alt+/"], "command": "auto_complete" },
  { "keys": ["alt+/"], "command": "replace_completion_with_auto_complete", "context":
    [
      { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
      { "key": "auto_complete_visible", "operator": "equal", "operand": false },
      { "key": "setting.tab_completion", "operator": "equal", "operand": true }
    ]
  },
    // HTML, XML close tag
    { "keys": ["/"], "command": "close_tag", "args": { "insert_slash": true }, "context":
        [
            { "key": "selector", "operator": "equal", "operand": "(text.html, text.xml) - string - comment", "match_all": true },
            { "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true },
            { "key": "setting.auto_close_tags" }
        ]
    },
    { "keys": ["ctrl+alt+shift+p"], "command": "autoprefixer" },
  //ie 
  { 
    "keys": ["alt+f12"], 
    "command": "side_bar_files_open_with", 
    "args": { "paths": [], 
      "application": "C:\\Program Files\\Internet Explorer\\iexplore.exe", 
      "extensions": ".*" 
    } 
  }, 
  //chorme 
  { 
    "keys": ["ctrl+f12"], 
    "command": "side_bar_files_open_with", 
    "args": { "paths": [], 
      "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", 
      "extensions": ".*" 
    } 
  }, 
  //firefix 
  { 
    "keys": ["shift+f12"], 
    "command": "side_bar_files_open_with", 
    "args": { "paths": [], 
      "application": "E:\\Program Files\\Mozilla Firefox\\firefox.exe", 
      "extensions": ".*" 
    } 
  } 
]
其中IE的快捷键是alt+f12

谷歌的快捷键是ctrl+f12

火狐的快捷键是shift+f12

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值