庄七

< 愿以善眼望世界 >

Sublime Text 3搭配手札

Sublime Text是一个明明可以靠脸吃饭,偏偏靠才华的代码神器。

安装

Sublime Text 3下载地址: http://www.sublimetext.com/3

激活

打开Sublime菜单 > help > enter License,输入激活码即可。 Sublime Text 3 3143版本

—– 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 ——  

Sublime Text 3 3114版本

—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36
—— END LICENSE ——
—– BEGIN LICENSE —–
Free Communities Consultoria em Informática Ltda
Single User License
EA7E-801302
C154C122 4EFA4415 F1AAEBCC 315F3A7D
2580735A 7955AA57 850ABD88 72A1DDD8
8D2CE060 CF980C29 890D74F2 53131895
281E324E 98EA1FEF 7FF69A12 17CA7784
490862AF 833E133D FD22141D D8C89B94
4C10A4D2 24693D70 AE37C18F 72EF0BE5
1ED60704 651BC71F 16CA1B77 496A0B19
463EDFF9 6BEB1861 CA5BAD96 89D0118E
—— END LICENSE ——
—– BEGIN LICENSE —–
Nicolas Hennion
Single User License
EA7E-866075
8A01AA83 1D668D24 4484AEBC 3B04512C
827B0DE5 69E9B07A A39ACCC0 F95F5410
729D5639 4C37CECB B2522FB3 8D37FDC1
72899363 BBA441AC A5F47F08 6CD3B3FE
CEFB3783 B2E1BA96 71AAF7B4 AFB61B1D
0CC513E7 52FF2333 9F726D2C CDE53B4A
810C0D4F E1F419A3 CDA0832B 8440565A
35BF00F6 4CA9F869 ED10E245 469C233E
—— END LICENSE ——
—– BEGIN LICENSE —–
Anthony Sansone
Single User License
EA7E-878563
28B9A648 42B99D8A F2E3E9E0 16DE076E
E218B3DC F3606379 C33C1526 E8B58964
B2CB3F63 BDF901BE D31424D2 082891B5
F7058694 55FA46D8 EFC11878 0868F093
B17CAFE7 63A78881 86B78E38 0F146238
BAE22DBB D4EC71A1 0EC2E701 C7F9C648
5CF29CA3 1CB14285 19A46991 E9A98676
14FD4777 2D8A0AB6 A444EE0D CA009B54
—— END LICENSE ——

Sublime Text 3 3126版本

—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36
—— END LICENSE ——
—– BEGIN LICENSE —–
Free Communities Consultoria em Informática Ltda
Single User License
EA7E-801302
C154C122 4EFA4415 F1AAEBCC 315F3A7D
2580735A 7955AA57 850ABD88 72A1DDD8
8D2CE060 CF980C29 890D74F2 53131895
281E324E 98EA1FEF 7FF69A12 17CA7784
490862AF 833E133D FD22141D D8C89B94
4C10A4D2 24693D70 AE37C18F 72EF0BE5
1ED60704 651BC71F 16CA1B77 496A0B19
463EDFF9 6BEB1861 CA5BAD96 89D0118E
—— END LICENSE ——

sublime text3 3103版本

—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36
—— END LICENSE ——

以下激活码只适合3083和3080版本,不在适合3103版本。 激活码1:

—– 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:

—– BEGIN LICENSE —–
K-20
Single User License
EA7E-940129
3A099EC1 C0B5C7C5 33EBF0CF BE82FE3B
EAC2164A 4F8EC954 4E87F1E5 7E4E85D6
C5605DE6 DAB003B4 D60CA4D0 77CB1533
3C47F579 FB3E8476 EB3AA9A7 68C43CD9
8C60B563 80FE367D 8CAD14B3 54FB7A9F
4123FFC4 D63312BA 141AF702 F6BBA254
B094B9C0 FAA4B04C 06CC9AFC FD412671
82E3AEE0 0F0FAAA7 8FA773C9 383A9E18
—— END LICENSE ——

激活码3:

—– BEGIN LICENSE —–
J2TeaM
2 User License
EA7E-940282
45CB0D8F 09100037 7D1056EB A1DDC1A2
39C102C5 DF8D0BF0 FC3B1A94 4F2892B4
0AEE61BA 65758D3B 2EED551F A3E3478C
C1C0E04E CA4E4541 1FC1A2C1 3F5FB6DB
CFDA1551 51B05B5D 2D3C8CFE FA8B4285
051750E3 22D1422A 7AE3A8A1 3B4188AC
346372DA 37AA8ABA 6EB30E41 781BC81F
B5CA66E3 A09DBD3A 3FE85BBD 69893DBD
—— END LICENSE ——

Package Control

Package Control是帮Sublime管理插件的那个插件。

命令行安装

打开sublime text ,按ctrl+ (Mac为control + )或者菜单View > Show Console打开命令窗口,粘贴以上代码并回车即可。

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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)

或者

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

手动安装

1、点击 Preferences > Browse Packages… 菜单

2、进入 Installed Packages/ 目录

3、下载 Package Control.sublime-package,并复制文件到 Installed Packages/ 目录

4、重启 Sublime Text

安装插件

Sublime有两种安装插件的方式:

利用Package Control安装(推荐)

1、在Sublime中,打开插件管理器(command+shift+p) 2、输入Install Package 3、输入你想要的插件名称进行检索,选中想要的项按回4、车直接进行安装。 5、安装完成后,重新启动Sublime

手动安装

1、下载插件的源文件,将其拷贝到packages目录下。
2、完成后,重新启动Sublime

用户设置

{
  // Typography

    "font_face": "Anonymous Pro",//字体设置
    "font_size": 14,//字号设置
    "font_options": ["no_round"],
    "highlight_line": true,//高亮当前行
    "caret_extra_width": 1,
    "caret_style": "phase",
    "word_wrap": true,//自动换行
    "tab_size": 2,//TAB键的空格数量
    "line_padding_bottom": 1,//每行的顶部Padding
    "line_padding_top": 1,//每行的底部Padding

  // Theme
      //Settings for Spacegray
          "theme": "Spacegray.sublime-theme",//主题设置
          "color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",//配色设置
      //Settings for Spacegray Light
          //"theme": "Spacegray Light.sublime-theme",
          //"color_scheme": "Packages/Theme - Spacegray/base16-ocean.light.tmTheme",
      //Settings for Spacegray Eighties
          //"theme": "Spacegray Eighties.sublime-theme",
          //"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme"

  // Whitespace, Matching, Copy & Auto-Complete

   "copy_with_empty_selection": false,
   "drag_text": false,
   "match_brackets_content": false,
   "match_selection": false,
   "match_tags": false,
   "translate_tabs_to_spaces": false,
   "trim_trailing_white_space_on_save": true,

  // Interface & Behavior

   "spacegray_tabs_auto_width": true,//顶部标签自动宽度
   "spacegray_tabs_large": true,// 顶部标签高度,值有 small, normal, large or xlarge
   "spacegray_tabs_font_normal": true,// 顶部标签文字大小,值有 small, normal, large or xlarge
   "spacegray_sidebar_font_large": true,// 侧边栏文字大小,值有 small, normal, large or xlarge
   "spacegray_sidebar_tree_nromal": true,// 侧边栏树状图间隔,值有xsmall, small, normal, large or xlarge
   "close_windows_when_empty": false,
   "draw_minimap_border": true,//显示右侧小地图的外框
   "enable_tab_scrolling": true,//显示顶部标签滚动按钮
   "overlay_scroll_bars": "enabled",
   "open_files_in_new_window": false,
   "preview_on_click": true,//单击文件预览
   "scroll_past_end": true,
   "scroll_speed": 5.0,
   "show_full_path": false,
   "findreplace_small": true,

  // Others

   "default_line_ending": "unix",//默认换行符风格
   "ensure_newline_at_eof_on_save": true,
   "show_encoding": true,//显示编码
   "ignored_packages":
   [
     "Vintage"
   ],
   "update_check": false

  //主题GitHub地址 https://github.com/kkga/spacegray

}

汉化

sublime 汉化插件:Chinese​Localization提供简中,繁中,英文,日文四种语言切换。 该插件对主菜单和右键菜单进行汉化,对菜单汉化有需求的可以使用。
Chinese​Localization下载
Chinese​Localization的Github地址

字体

Programmer-font下载

参考教程及相关链接

Sublime Text 3 3126 安装+注册码
Sublime Text3 激活教程
明明可以靠脸吃饭 偏偏靠才华
sublime 汉化插件:Chinese​Localization
Sublime插件:增强篇