[TOC]
# [Sublime Text](https://www.sublimetext.com/)
如果你不安装插件,可以当作替换记事本的好工具~ ,跨平台,快捷方便。
当然还有个 notepad2-mod ,也是我喜欢的 windows 编辑器。
# 常用快捷键
# 添加右键菜单
以下文件保存为`sublime_addright.inf`,放在subl的安装目录下,然后右键安装:
~~~
[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=SublimeText3
[SublimeText3]
hkcr,"*\\shell\\SublimeText3",,,"open with subl3"
hkcr,"*\\shell\\SublimeText3\\command",,,"""%1%\sublime_text.exe"" ""%%1"" %%*"
hkcr,"Directory\shell\SublimeText3",,,"open with subl3"
hkcr,"*\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"Directory\shell\SublimeText3\command",,,"""%1%\sublime_text.exe"" ""%%1"""
~~~
# Packages 路径
The "Packages" directory is located at:
* OS X:
ST2: ~/Library/Application Support/Sublime Text 2/Packages/
ST3: ~/Library/Application Support/Sublime Text 3/Packages/
* Linux:
ST2: ~/.config/sublime-text-2/Packages/
ST3: ~/.config/sublime-text-3/Packages/
* Windows:
ST2: %APPDATA%/Sublime Text 2/Packages/
ST3: %APPDATA%/Sublime Text 3/Packages/
# 插件
# 技巧
## Emmet
将图片资源转换成 data url 形式:将光标移动到 `background: url()` 中的图片位置的地方,一个快捷键瞬间转换:`Ctrl+'`;
自动添加图片的尺寸大小:将光标放在图片地址上,一个快捷键统统搞定:Ctrl+U`;