我的sublime2安装

sublime轻量级的开发工具,写代码让人感觉非常的爽:


以下是我安装这个的工具的过程:
1.下载一个sublime2版本的工具,然后破解:
Help-->enter license-->
copy代码到下面的控制台上:
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDB7036 E56DE1C0 EFCC0840 650CD3A6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------ 




2.看情况,是否设置你自己的快捷键,个人用惯了esclipse的快捷键,所以就修改了sublime的快捷键
个人自定义快捷键:Preferences-->key-Binding-User-->
[
//=======================我的快捷键=======================//


// 删除当前行
{ "keys": ["ctrl+d"], "command":"run_macro_file", "args": {"file":"Packages/Default/Delete Line.sublime-macro"} },
// 自动提示、补全
{ "keys": ["alt+/"], "command":"auto_complete" },
{ "keys": ["alt+/"], "command":"replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator":"equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator":"equal", "operand": false },
{ "key": "setting.tab_completion", "operator":"equal", "operand": true }
]
},
//与tab键冲突,秒之
{ "keys": ["shift+tab"], "command":"insert_best_completion", "args": {"default":"\t", "exact": true} },
{ "keys": ["shift+tab"], "command":"insert_best_completion", "args": {"default":"\t", "exact": false},
"context":
[
{ "key": "setting.tab_completion", "operator":"equal", "operand": true }
]
},
{ "keys": ["shift+tab"], "command":"replace_completion_with_next_completion", "context":
[
{ "key": "last_command", "operator":"equal", "operand": "insert_best_completion" },
{ "key": "setting.tab_completion", "operator":"equal", "operand": true }
]
},
{ "keys": ["shift+tab"], "command":"reindent", "context":
[
{ "key": "setting.auto_indent", "operator":"equal", "operand": true },
{ "key": "selection_empty", "operator":"equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator":"regex_match", "operand": "^$","match_all": true },
{ "key": "following_text", "operator":"regex_match", "operand": "^$","match_all": true }
]
},
{ "keys": ["shift+tab"], "command":"indent", "context":
[
{ "key": "text", "operator":"regex_contains", "operand": "\n" }
]
},
{ "keys": ["shift+tab"], "command":"next_field", "context":
[
{ "key": "has_next_field", "operator":"equal", "operand": true }
]
},
{ "keys": ["shift+tab"], "command":"commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab" }
]
},
//移动光标
{ "keys": ["alt+l"], "command": "move","args": {"by": "characters", "forward":false} },
{ "keys": ["alt+r"], "command": "move","args": {"by": "characters", "forward":true} },
{ "keys": ["alt+u"], "command": "move","args": {"by": "lines", "forward":false} },
{ "keys": ["alt+d"], "command": "move","args": {"by": "lines", "forward":true} },
{ "keys": ["shift+alt+l" ], "command":"move", "args": {"by": "characters","forward": false, "extend": true} },
{ "keys": ["shift+alt+r"], "command":"move", "args": {"by": "characters","forward": true, "extend": true} },
{ "keys": ["shift+alt+u" ], "command":"move", "args": {"by": "lines","forward": false, "extend": true} },
{ "keys": ["shift+alt+d" ], "command":"move", "args": {"by": "lines","forward": true, "extend": true} },


//移动光标到行首或行末
{ "keys": ["alt+b"], "command":"move_to", "args": {"to": "bol","extend": false} },
{ "keys": ["alt+e"], "command":"move_to", "args": {"to": "eol","extend": false} },
{ "keys": ["shift+alt+b"], "command":"move_to", "args": {"to": "bol","extend": true} },
{ "keys": ["shift+alt+e"], "command":"move_to", "args": {"to": "eol","extend": true} },


//滚屏
{ "keys": ["alt+g"], "command":"scroll_lines", "args": {"amount": 1.0 } },
{ "keys": ["alt+h"], "command":"scroll_lines", "args": {"amount": -1.0 } },


//缩进
{ "keys": ["shift+tab"], "command":"unindent" }


//=======================系统自带快捷键=======================//
//=============选择=============//
// Ctrl+L
// 选择整行(按住-继续选择下行)


//Ctrl+Shift+L
//鼠标选中多行,按下 同时编辑这些行


//鼠标中键
//拖动,选择多行


//Ctrl+左键点击
//同时选中多个节点进行编辑


//Ctrl+M
// 光标移动至括号内开始或结束的位置


// Ctrl+Shift+M
// 选择括号内的内容(按住-继续选择父括号)


//=============窗口=============//
// SHIFT+ALT+数字
// 分割窗口




//=============行处理=============//
// CTRL+J
// 合并行JOIN


// Ctrl+KU
// 改为大写


// Ctrl+KL
// 改为小写


// Ctrl+KK
// 从光标处删除至行尾


// Ctrl+Shift+D
// 复制光标所在整行,插入在该行之前


// Ctrl+J
// 合并行(已选择需要合并的多行时)


// Ctrl+/
// 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)


// Ctrl+Shift+/
// 注释已选择内容


// Ctrl+Shift+V
// 粘贴并自动缩进(其它兄弟写的,实测win系统自动缩进无效)


// Ctrl+M
// 光标跳至对应的括号


// Alt+.
// 闭合当前标签


// Ctrl+Shift+A
// 选择光标位置父标签对儿


// Ctrl+Shift+[
// 折叠代码


// Ctrl+Shift+]
// 展开代码


// Ctrl+KT
// 折叠属性


// Ctrl+K0
// 展开所有


// Ctrl+U
// 软撤销


// Ctrl+T
// 词互换


// Ctrl+Enter
// 插入行后


// Ctrl+Shift Enter
// 插入行前


// Ctrl+K Backspace
// 从光标处删除至行首


// Shift+Tab
// 去除缩进


// Tab
// 缩进


// F9
// 行排序(按a-z)


//Ctr+shift+p是弹出的packcontrol的窗口的弹出








]




3.进行对package control的安装:
crt+~/`(就是数字1左边的那个键),然后还是copy代码:
粘贴以下代码,回车。便安装了一款名为“Package Control”的插件,可以认为这是这个插件是别的插件的安装平台,装别的插件可以通过它来安装(ok之后,重启一下你的sublime):


01.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' 


4. 查看Preferences--->以上安装成功的话就可以看到是:Package Control 然后点击--->Package Control:install package-->
再查Emmet,即可安装,再进行重启,然后你会发现写代码起来很爽...至于sublime还有其他非常好的插件...以待自己自己需要安装。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值