Sublime个性化配置

1.配置快捷键方式

方式:点击sublime的Preference-->Key Bindings-User,将下面大括号里的内容拷进去重启即可 

(1)Eclipse快捷方式代码

{ "keys": ["alt+b"], "command": "open_in_browser" },
     { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },  
     { "keys": ["alt+/"], "command": "auto_complete" },//自动提示
     { "keys": ["alt+up"], "command": "swap_line_up" },//整行上移
     { "keys": ["alt+down"], "command": "swap_line_down" },//整行下移
     { "keys": ["alt+left"], "command": "jump_back" },//跳转到上一个编辑处
     { "keys": ["alt+right"], "command": "jump_forward" },
     { "keys": ["ctrl+alt+j"], "command": "join_lines" },  
     { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },//整行删除
     { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": //搜索全文
     "find_in_files"} },
     { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },  
     { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": //跳转到当前的某个方法
     "goto", "text": "@"} },
     { "keys": ["ctrl+up"], "command": "goto_definition" },//跳转到定义,比如在某个函数上按此键,则跳转到它的定义。
     { "keys": ["ctrl+down"], "command": "find_under_prev" },//选中光标所在的变量或者函数,非常有用
     { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },//向下复制整行
     {"keys": ["ctrl+shift+f"], "command": "reindent" , "args":{"single_line": //格式化代码,当然也可以利用html+css+js prettify插件来格式化
     false}},
     { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },  
     { "keys": ["ctrl+shift+s"], "command": "save_all" },  
     { "keys": ["ctrl+shift+f4"], "command": "close_all" },  
     { "keys": ["ctrl+shift+y"], "command": "lower_case" },  
     { "keys": ["ctrl+shift+x"], "command": "upper_case" },
     { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": false } },
     { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": true } }

(2)idea快捷方式代码

[
	{ "keys": ["alt+b"], "command": "open_in_browser" },
     { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },  
     { "keys": ["alt+/"], "command": "auto_complete" },//自动提示
     { "keys": ["ctrl+shift+up"], "command": "swap_line_up" },//整行上移
     { "keys": ["ctrl+shift+down"], "command": "swap_line_down" },//整行下移
     { "keys": ["alt+left"], "command": "jump_back" },//跳转到上一个编辑处
     { "keys": ["alt+right"], "command": "jump_forward" },
     { "keys": ["ctrl+alt+j"], "command": "pretty_json" },  
     { "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },//整行删除
     { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": //搜索全文
     "find_in_files"} },
     { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },  
     { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": //跳转到当前的某个方法
     "goto", "text": "@"} },
     { "keys": ["ctrl+up"], "command": "goto_definition" },//跳转到定义,比如在某个函数上按此键,则跳转到它的定义。
     { "keys": ["ctrl+down"], "command": "find_under_prev" },//选中光标所在的变量或者函数,非常有用
     { "keys": ["ctrl+d"], "command": "duplicate_line" },//向下复制整行
     {"keys": ["ctrl+shift+l"], "command": "reindent" , "args":{"single_line": //格式化代码,当然也可以利用html+css+js prettify插件来格式化
     false}},
     { "keys": ["ctrl+shift+s"], "command": "save_all" },  
     { "keys": ["ctrl+shift+f4"], "command": "close_all" },  
     { "keys": ["ctrl+shift+u"], "command": "lower_case" },  
     { "keys": ["ctrl+shift+u"], "command": "upper_case" },
     { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": false } },
     { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": true } },
     { "keys": ["ctrl+r"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
     { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
     { "keys": ["ctrl+shift+z"], "command": "redo_or_repeat" },
]

2.配置字体颜色大小

方式:点击sublime的Preference-->Settings-User,将下面的复制进去

{
	"font_face": "Segoe UI Semibold",
	"font_size": 13,
	"font_options": ["gdi"],
	"dpi_scale": 2.0,
	"ignored_packages":
	[
		"ConvertToUTF8",
		"SFTP",
		"Vintage",
	],
	"update_check": false,
	"theme": "Default.sublime-theme",
	"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
}

3.Sublime text3 build3143注册码

—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
9D2D2E61 67610860 6D338B72 5CF95C69
E36B85CC 84991F19 7575D828 470A92AB
—— END LICENSE ——

4.安装PackageControl

快捷键ctrl+` 或者View->Show Console,输入如下代码(sublime text3)

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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)

或者下面的代码

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())

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值