Mac版sublime text右键open in browser 不能识别中文名解决办法

摘要:
在Mac上的升华文本下打开一个以中文命名的html文件。1.将中文名为的html文件更改为英文名为的html文件以供预览。首选项->在打开的用户文件中设置快捷键、路径等:首选项->EyBindings用户,[//习惯命令+b默认Chrome{“键”:[“命令+b”],[“命令+2”],

问题描述:

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 不能识别中文名解决办法》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇使用IEDScout校验61850出错记录及解决方案C#字符串和ASCII码的转换下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

easyui datagrid设置fit: true后,页面显示不全的情况

跟工具栏有关 <div id="tb"> <div style="float:left;"> <a href="http://t.zoukankan.com/cuizhf-p-5240229.html#" class="easyui-linkbutto...

highcharts图表

<!--图表例子--> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Highcharts Example...

shell学习(16)- 压缩和解压缩命令tar和zip

tar命令 [root@Linux ~]# tar [-cxtzjvfpPN] 文件与目录 .... 参数: -c :建立一个压缩文件的参数指令(create 的意思); -x :解开一个压缩文件的参数指令! -t :查看 tarfile 里面的文件! 特别注意,在参数的下达中, c/x/t 仅能存在一个!不可同时存在! 因为不可能同时压缩与解压缩。 -z...

maven创建ssm项目依赖(pom.xml文件)

该pom.xml文件包含的依赖有:   spring    springMVC   mybatis   mybatis连接spring   commons-logging   c3p0连接池   java连接mysql   servlet jsp   log4j  日志   gson  解析json数据格式   commons-io  用于上传文件 <...

spring security 核心切面

import org.aopalliance.intercept.MethodInterceptor; import org.apache.commons.collections.CollectionUtils; import org.springframework.aop.support.StaticMethodMatcherPointcutAdvis...

influxdb 配置文件注释

### Welcome to the InfluxDB configuration file. # The values in this file override the default values used by the system if # a config option is not specified. The commented o...