改用sublime编辑器
程序员文章站
2024-01-09 23:48:10
...
倘若早点知道这个网站,我或许会早一些迁移到sublime上来了。
https://packagecontrol.io/installation
今天学会了使用sublime安装扩展包,感觉是打开了一扇新的大门,我觉得未来一段时间我都会使用sublime作为编辑器了。
安装扩展包举例说明:
参考如下链接
https://packagecontrol.io/packages/View%20In%20Browser
操作如下:
1.在sublime中按下ctrl+shift+p打开包控制
2.在输入框中输入Install Package,按下回车
3.搜索插件名字view in browser
4.进行个人配置
CTRL + SHIFT + P and find Package Control: Install Package and press Enter. Find this plugin in the list by name View In Browser.
配置为:
[
{ "keys": [ "ctrl+alt+v" ], "command": "view_in_browser" },
{ "keys": [ "ctrl+alt+f" ], "command": "view_in_browser", "args": { "browser": "firefox" } },
{ "keys": [ "ctrl+alt+c" ], "command": "view_in_browser", "args": { "browser": "chrome" } },
{ "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "iexplore" } },
{ "keys": [ "ctrl+alt+s" ], "command": "view_in_browser", "args": { "browser": "safari" } }
]
ctrl+alt+s验证文件是否可以在safari中打开。
sublime小技巧
1.自动排版
Ctrl+A选中,Edit->Line->Reindent进行自动缩进
上一篇: 设计模式之工厂模式