Sublime text 3下载
从sublime text官网下载,下载链接:http://www.sublimetext.com,选择自己的操作系统版本安装。
Package control安装
进入菜单View > Show Console
,然后在输入代码:
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)
回车之后就会安装,安装完成之后,输入ctrl + shitf + p
或command + shift + p
(mac),搜索需要安装的插件。
编辑器设置
进入菜单Preferences > Settings - User
,更改设置:
{
"enable_tab_scrolling": true,
"font_size": 16,
"ignored_packages":
[
"Vintage"
],
"show_encoding": true,
"word_wrap": true,
"fade_fold_buttons": false,
}
主题安装及设置
安装主题Material Theme
、Theme - itg.flat
,Material Theme主题设置(Preferences > Settings - User
):
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"theme": "Material-Theme.sublime-theme",
"material_theme_accent_sky": true,
"material_theme_bold_tab": true,
"material_theme_compact_panel": true,
"material_theme_compact_sidebar": true,
"material_theme_contrast_mode": true,
"material_theme_small_statusbar": true,
"material_theme_small_tab": true,
"material_theme_tabs_separator": true,
"material_theme_tree_headings": true
}
插件安装
AdvancedNewFile
AutoFileName
Babel Snippets
CSS3
DocBlockr
Emmet
EncodingHelper
HTML-CSS-JS Prettify
HTML5
Git
JavaScript & NodeJS Snippets
JavaScriptNext - ES6 Syntax
jQuery
LESS
Nodejs
Python 3
Sass
SCSS
SideBarEnhancements
SideBarFolders
SideBarGit
Better Completion
SublimeLinter
SublimeCodeIntel
Terminal
插件 Side Bar 设置(user)
{
"statusbar_modified_time": false,
"statusbar_modified_time_format": "%A %b %d %H:%M:%S %Y",
"statusbar_modified_time_locale": "",
"statusbar_file_size": false,
"close_affected_buffers_when_deleting_even_if_dirty": false,
"hide_open_with_entries_when_there_are_no_applicable": false,
"confirm_before_deleting": true,
"confirm_before_permanently_deleting": true,
"new_files_relative_to_project_root": false,
"new_folders_relative_to_project_root": false,
"disabled_menuitem_edit": true,
"disabled_menuitem_edit_to_right": false,
"disabled_menuitem_open_run": false,
"disabled_menuitem_open_in_browser": false,
"disabled_menuitem_open_in_new_window": true,
"disabled_menuitem_find_in_project": true,
"disabled_menuitem_copy_name": true,
"disabled_menuitem_copy_path": true,
"disabled_menuitem_copy_path_windows": true,
"disabled_menuitem_copy_dir_path": true,
"disabled_menuitem_paste_in_parent": true,
"disabled_menuitem_empty": true,
"default_browser": "",
"open_all_browsers": ["firefox", "chrome", "ie", "edge"],
"portable_browser": "",
"disable_send_to_trash": false,
"use_powershell": true,
"auto_close_empty_groups": false
}
其它设置
- 打开左侧目录树
View -> Side Bar -> Show Side Bar
- 隐藏左侧open files
View -> Side Bar -> Hide Open Files
快捷键
Ctrl+Shift+P:打开命令面板
Ctrl+P:搜索项目中的文件
Ctrl+G:跳转到第几行
Ctrl+W:关闭当前打开文件
Ctrl+Shift+W:关闭所有打开文件
Ctrl+Shift+V:粘贴并格式化
Ctrl+D:选择单词,重复可增加选择下一个相同的单词
Ctrl+L:选择行,重复可依次增加选择下一行
Ctrl+Shift+L:选择多行
Ctrl+Shift+Enter:在当前行前插入新行
Ctrl+X:删除当前行
Ctrl+M:跳转到对应括号
Ctrl+U:软撤销,撤销光标位置
Ctrl+J:选择标签内容
Ctrl+F:查找内容
Ctrl+Shift+F:查找并替换
Ctrl+H:替换
Ctrl+R:前往 method
Ctrl+N:新建窗口
Ctrl+K+B:开关侧栏
Ctrl+Shift+M:选中当前括号内容,重复可选着括号本身
Ctrl+F2:设置/删除标记
Ctrl+/:注释当前行
Ctrl+Shift+/:当前位置插入注释
Ctrl+Alt+/:块注释,并Focus到首行,写注释说明用的
Ctrl+Shift+A:选择当前标签前后,修改标签用的
F11:全屏
Shift+F11:全屏免打扰模式,只编辑当前文件
Alt+F3:选择所有相同的词
Alt+.:闭合标签
Alt+Shift+数字:分屏显示
Alt+数字:切换打开第N个文件
Shift+右键拖动:光标多不,用来更改或插入列内容鼠标的前进后退键可切换Tab文件
按Ctrl,依次点击或选取,可需要编辑的多个位置
按Ctrl+Shift+上下键,可替换行
最后附带一个激活码(ST3 3114版本可用)
—– BEGIN LICENSE —–
Ryan Clark
Single User License
EA7E-812479
2158A7DE B690A7A3 8EC04710 006A5EEB
34E77CA3 9C82C81F 0DB6371B 79704E6F
93F36655 B031503A 03257CCC 01B20F60
D304FA8D B1B4F0AF 8A76C7BA 0FA94D55
56D46BCE 5237A341 CD837F30 4D60772D
349B1179 A996F826 90CDB73C 24D41245
FD032C30 AD5E7241 4EAA66ED 167D91FB
55896B16 EA125C81 F550AF6B A6820916
—— END LICENSE ——