zoukankan      html  css  js  c++  java
  • Mac版sublime text右键open in browser 不能识别中文名解决办法

    问题描述:

    Mac下sublime text下打开中文命名的html文件,右键open in browser,浏览器无反应。

    解决思路

    要么适应软件,要么改进软件来适应。
    1.  将中文名的html文件,改成英文名的html文件来预览。
    2.  改造sublime text, 安装插件SideBarEnhancements,使用插件的“open in browser”功能。
    3.  设置sublime text快捷键,路径: preferences -> keyBindings,在打开的 User文件中设置快捷键、路径等

    解决法:

    现在用安装SideBarEnhancements来解决,步骤如下:

    1.    安装 SideBarEnhancements

    2.Sublime Text ->Preferences ->ey Bindings-User,配置如下:

    [
     
    // 习惯command+b默认Chrome
     
    { "keys": ["command+b"], "command": "side_bar_files_open_with",
       
    "args": {
         
    "paths": [],
         
    "application": "/Applications/Google Chrome.app",
         
    "extensions":".*"
       
    }
      }
    ,

     
    // Safari
     
    { "keys": ["command+2"], "command": "side_bar_files_open_with",
       
    "args": {
         
    "paths": [],
         
    "application": "/Applications/Safari.app",
         
    "extensions":".*"
       
    }
      }
    ,

     
    // Firefox
     
    { "keys": ["command+3"], "command": "side_bar_files_open_with",
       
    "args": {
         
    "paths": [],
         
    "application": "/Applications/Firefox.app",
         
    "extensions":".*"
       
    }
      }
    ]

    配置完成后,按"command+b"即可使用chrome预览。

  • 相关阅读:
    Jquery:强大的选择器<一>
    要经营我的园子了!!!
    Json在Struts中的转换与传递
    MyEclipse快捷键大全
    Pyqt在QListWidget中添加右键菜单
    swift中Double转String
    Spring MVC 关于分页的简单实现
    Spring MVC 通过@Value注解读取.properties配置内容
    SQL 查询语句(备份)
    Idea使用说明
  • 原文地址:https://www.cnblogs.com/liuyishi/p/6622856.html
Copyright © 2011-2022 走看看