前言
直至昨日才得知這個令人驚豔的編輯器,在下可真是孤陋寡聞了,試用及粗淺研究過後,特此為文一篇記之。
- 2011-12-24 新增sublime-text-haml-sass套件
安裝
安裝 Package Control
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
建議套件
Alignment
| 快捷鍵 |
| 執行動作 | Ctrl + Shift + A |
BufferScroll
Git
JsFormat
SideBarEnhancements
SideBarGit
SublimeBrackets
- 標示{}、()、[]片段頭尾。
- 建議設置,編輯 SublimeBrackets.py
# Customize
#--------------------
# Scope? (Defined in theme files.) ->
# Examples: (keyword/string/number)
CurlyScope = 'entity.name.class'
RoundScope = 'string'
SquareScope = 'keyword'
# Outline? (True/False) ->
CurlyOutline = False
RoundOutline = False
SquareOutline = False
# Icon? (dot/circle/bookmark/cross)
CurlyIcon = 'dot'
RoundIcon = 'dot'
SquareIcon = 'dot'
#--------------------
# End Customize
sublimelint
SublimeWebColors
| 快捷鍵 |
| 開啟選單 | Ctrl + Shift + U |
TrailingSpaces
- 顯示行結尾多餘空白字元,並可快速刪除。
- 開啟Preferences → Key Bindings - User
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" }
| 快捷鍵 |
| 執行刪除動作 | Ctrl + Shift + T |
WordCount
WordHighlight
- 高亮標示文件內所有與選取部分相同的片段。
- 更改設定以符合使用習慣,編輯 Word Highlight.sublime-settings
{
"draw_outlined": false,
"highlight_when_selection_is_empty": true
}
ZenCoding
| 快捷鍵 |
| 展開內容 | Tab |
| 包覆內容 | Ctrl + Alt + Enter |
| 建立預設xhtml內容 | Ctrl + Alt+ Shift + H |
sublime-text-haml-sass
建立專案
- Add Folder to Project…
- Save Project As…
設定
"highlight_line": true,
常用快捷鍵
| 快捷鍵 |
| Goto Anything | Ctrl + P |
| Goto Symbol | Ctrl + R |
| Goto Word | Ctrl + ; |
| Goto Line | Ctrl + G |
後話
如有高手知道如何達成支援PHP 5.3的Namespace跳轉目標檔案的功能,懇請告知,感激不盡。
延伸閱讀
0 意見:
張貼意見