1.安装下载
下载地址:http://www.cr173.com/soft/121149.html
http://www.xiazaiba.com/html/24343.html
官网 http://www.sublimetext.com/
Sublime Text 2 设置文件详解:http://linux.cn/article-799-1.html
Sublime Text 2 文档:http://baelabs.duapp.com/Sublime/、https://github.com/yangweijie/SublimeText2_doc_cn
Sublime Text 3能用支持的插件推荐:http://dengo.org/archives/923
Sublime Text 3 插件的汉化、开发、发布方法教程:http://my.oschina.net/theforever/blog/136554
入门好文:
http://www.tuicool.com/articles/VjiQraV
https://scotch.io/bar-talk/sublime-text-keyboard-shortcuts
搭建一个免费的,无限流量的Blog----github Pages和Jekyll入门
http://www.ruanyifeng.com/blog/2012/08/blogging_with_jekyll.html
2.常规设置
关闭Sublime Text 3的自动更新
1、找到Preferences (首选项)-> Settings-User(设置-用户)
2、在花括号{}内添加:"update_check":false,保存即可
3.快捷键
Ctrl+L 选择整行(按住-继续选择下行)
Ctrl+KK 从光标处删除至行尾
Ctrl+Shift+K 删除整行
Ctrl+Shift+D 复制光标所在整行,插入在该行之前
Ctrl+J 合并行(已选择需要合并的多行时)
Ctrl+KU 改为大写
Ctrl+KL 改为小写
Ctrl+D 选词 (按住-继续选择下个相同的字符串)
Ctrl+M 光标移动至括号内开始或结束的位置
Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)
Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
Ctrl+Shift+/ 注释已选择内容
Ctrl+Z 撤销
Ctrl+Y 恢复撤销
Ctrl+M 光标跳至对应的括号
Alt+. 闭合当前标签
Ctrl+Shift+A 选择光标位置父标签对儿
Ctrl+Shift+[ 折叠代码
Ctrl+Shift+] 展开代码
Ctrl+KT 折叠属性
Ctrl+K0 展开所有
Ctrl+U 软撤销
Ctrl+T 词互换
Tab 缩进 自动完成
Shift+Tab 去除缩进
Ctrl+Shift+↑ 与上行互换
Ctrl+Shift+↓ 与下行互换
Ctrl+K Backspace 从光标处删除至行首
Ctrl+Enter 光标后插入行
Ctrl+Shift+Enter 光标前插入行
Ctrl+F2 设置书签
F2 下一个书签
Shift+F2 上一个书签
4.插件安装
1)安装Package Control
使用Ctrl+`快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码:
import
urllib.request,os; pf
=
'Package Control.sublime-package'
; ipp
=
sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) );
open
(os.path.join(ipp, pf),
'wb'
).write(urllib.request.urlopen(
'http://sublime.wbond.net/'
+
pf.replace(
' '
,
'%20'
)).read())
如果顺利的话,此时就可以在Preferences菜单下看到Package Settings和Package Control两个菜单了。
2)安装TortoiseSVN
a.点击首选项 - Package Control,选择“Package Control: install packages”,然后你会看见左下角有个=号在一直晃动,等待一下
b.接着会显示出来可以安装的包,此时你只需要输入svn,选择TortoiseSVN
TortoiseSVN: ----------- Sublime-TortoiseSVN ============= sublime-TortoiseSVN is a tiny and simple plugin for [Sublime Text](http://www.sublimetext.com) . It's behavior is similar to [subclipse](http://subclipse.tigris.org/) in [Eclipse](http://www.eclipse.org/). **It runs only on Windows and needs the TortoiseSVN and TortoiseSVN command line tools (TortoiseProc.exe).** Usage ============ Install it using [Sublime Package Control](http://wbond.net/sublime_packages/package_control). If TortoiseSVN is not installed at `C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe`, specify the correct path by setting property "tortoiseproc_path" in your TortoiseSVN.sublime-settings file. The default key bindings are - [alt+c] : commit current file. - [alt+u] : update current file. - [alt+r] : revert current file. You can also call TortoiseSVN commands when right-clicking folders or files in the side bar. IMPORTANT ============== Do NOT edit the default Sublime-TortoiseSVN settings. Your changes will be lost when Sublime-TortoiseSVN is updated. ALWAYS edit the user Sublime-TortoiseSVN settings by selecting "Preferences->Package Settings->TortoiseSVN->Settings - User". Note that individual settings you include in your user settings will **completely** replace the corresponding default setting, so you must provide that setting in its entirety. Settings ============== If your TortoiseProc.exe path is not the default, please modify the path by selecting "Preferences->Package Settings->TortoiseSVN->Settings - User" in the menu. The default setting is: { // Auto close update dialog when no errors, conflicts and merges "autoCloseUpdateDialog": false, "tortoiseproc_path": "C:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe" } Package Control Messages ========================
里边最重要的就是下边几句,说的是你要是默认安装的TortoiseSVN,则不需要更改直接可以使用,要是自定义的路径,则需要手动配置sublime text的svn插件路径,具体的配置文件在Preferences->Package Settings->TortoiseSVN->Settings - User
则在刚才打开的配置文件里边输入一下内容
{ // Auto close update dialog when no errors, conflicts and merges "autoCloseUpdateDialog": false, "tortoiseproc_path": "D:\\SVN\\bin\\TortoiseProc.exe" }
注意,目录层之间用\\分割而不是\分割哦~
现在你再试试在你左侧栏中右键是不是能看见svn的操作选项了呀.
3)如何添加到右键菜单
(1)cmd命令中运行:regedit,打开注册表。
(2)依次找到HKEY_CLASSESS_ROOT->*->Shell,下面新建项,命名为Edit with Sublime Text3。
(3)在项“Edit with Sublime Text”下新建字符串值,命名为Icon,值为“C:\Sublime Text\sublime_text.exe,0”,其中黑色地址为 Sublime Text程序文件地址。
(4)在项“Edit with Sublime Text”下新建项Command,该Command项下默认值修改为“C:\Sublime Text\sublime_text.exe %1”。