Sublime Text2 tips

1. 设置 tab 为 4 个空格

// The number of spaces a tab is considered equal to
"tab_size": 4,

// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,

Reference

2. 设置 vim 模式

"ignored_packages": ["Vintage"]

to:

"ignored_packages": []

默认打开文件进入 insert 模式,可设置默认打开文件为 command 模式

add:

"vintage_start_in_command_mode": true

Reference

3. 列编辑模式

Reference

4. 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; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')

安装完成之后重启 Sublime

5. Markdown Preview 插件

Reference

6. 撤销恢复

7. 查找替换

8. Ctrl+P

9. 命令调用

10. Console

–EOF–

Written by kumu on 19 December 2014