Sublime Text3
持续的更新。。。
软件下载:http://pan.baidu.com/s/1o6BsdXg
安装Package Control
ctrl+`
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
sublime-setting user
{
"always_show_minimap_viewport": true,//始终显示代码地图
"color_scheme": "Packages/Material Color Scheme/sublime/material-dark.tmTheme",//设置自己的颜色主题
"font_size": 14,//字体大小
"translate_tabs_to_spaces": true,//tab转为空格
"tab_size": 4,//tab占4个空格
"highlight_line": true,//高亮当前行 "save_on_focus_lost": true,//当前tab失去焦点自动保存
"show_encoding": true,//右下角显示当前文件的编码
"word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?"//字符分隔符
}
AutoFileName https://github.com/BoundInCode/AutoFileName
<img src="../|" />
FileHeader http://shiyanhui.github.io/FileHeader/
在__FileHeader.sublime-settings__里加入如下内容( author和email改为自己的 ):
{
"Default": {
"author":"zhuxy",
"last_modified_by":"zhuxy",
"email":"zhuxinyong.sh@superjia.com"
}
}
Browser Packages->File Header->tempalte->body>JavaScript.tmpl
'use strict';
var demo = {
api: function(key) {
var rootPath = '/api/api';
return rootPath + {
list: ''
}[key];
},
init: function(container, options) {
var self = this;
self.container = container;
self.options = options;
self.events();
},
events: function() {
var self = this;
var container = self.container;
container.on('click', '.demo', function() {
});
}
};
module.exports = demo;
local-history https://github.com/vishr/local-history
ctrl + shift + p 输入: local History:
DocBlockr https://github.com/spadgos/sublime-jsdocs()
SideBarEnhancements https://github.com/titoBouzout/SideBarEnhancements
Emmet: http://emmet.io/
部分快捷键:
__css:__
> m-10--20 -> margin: -10px -20px;
__html:__
> ul>li.item-$*3>(span+em)
<ul>
<li class="item-1"><span></span><em></em></li>
<li class="item-2"><span></span><em></em></li>
<li class="item-3"><span></span><em></em></li>
</ul>
Emmet LiveStyle http://livestyle.emmet.io/install/ http://livestyle.emmet.io/about/
HTML-CSS-JS Prettify https://github.com/victorporof/Sublime-HTMLPrettify
SyncedSideBar https://github.com/sobstel/SyncedSideBar
支持当前文件在左侧面板中定位
FileDiffs https://github.com/colinta/
ConvertToUTF8 https://sublime.wbond.net/packages/ConvertToUTF8
Markdown Preview https://packagecontrol.io/packages/Markdown%20Preview
Preferences -> Key Bindings User
设置快捷键:
[
{ "keys": ["alt+m"], "command": "markdown_preview", "args": { "target": "browser"} }
]
Preferences ->Package Settings->Markdown Preview->Setting Default
CSScomb
https://packagecontrol.io/packages/CSScomb
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。