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预览。
Mac版sublime text右键open in browser 不能识别中文名解决办法
原文:http://www.cnblogs.com/liuyishi/p/6622856.html