Mac设置sublime text 3支持鼠标滚轮调整字体大小
打开配置文件目录,默认路径如下:
~/Library/Application Support/Sublime Text 3/Packages/User
在此目录下添加一个配置文件,若有则直接修改:
Default (OSX).sublime-mousemap
内容如下:
[
{
"button": "scroll_down",
"command": "decrease_font_size",
"modifiers": [
"command"
]
},
{
"button": "scroll_up",
"command": "increase_font_size",
"modifiers": [
"command"
]
}
]
其中modifiers指定为command是指mac的⌘键,也可以使用ctrl代替。
如果想禁用鼠标滚轮调整字体大小功能,可以把"command"设置为null即可,如下:
[
{
"button": "scroll_down",
"command": "null",
"modifiers": [
"command"
]
},
{
"button": "scroll_up",
"command": "null",
"modifiers": [
"command"
]
}
]