sublime text 3的使用
2015-08-11 11:23
369 查看
1、安装(http://www.sublimetext.com/3)
2、安装package control
3、汉化(利用package controll 安装 ChineseLocalization插件即可)
4、注册(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 ——
5、快捷键配置示例
{"keys": ["ctrl+alt+o"],"command": "project_manager", "args": {"action": "new"}},
{"keys": ["ctrl+shift+space"],"command": "toggle_side_bar"}
6、个人设置文件示例
7、安装插件
插件列表
convertToUtf8 解决中文乱码插件
IMEsupport 使中文输入法跟随光标
Seti_ui 主题插件
安装后可以用户配置文件,示例如下:
{
"theme": "Seti_orig.sublime-theme",
"Seti_ClosedFolder_dots": true,
"Seti_ClosedFolder_remove": false,
"Seti_ClosedFolder_same": false,
"Seti_SB_big": true,
"Seti_bold_heading": true,
"Seti_bold_slctdfile_labels": true,
"Seti_heading_font_12": true,
"Seti_pad_5": false,
"Seti_sb_big_padding": false,
"Seti_sb_small_padding": false,
"Seti_sb_tree_med": false,
"Seti_sb_tree_small": false,
"Seti_show_group_arrows": true,
}
AdvancedNewFile 新建文件,可输入完整路径
Alignment 代码对齐工具
AutoFileName 快速浏览目录下的文件
BracketHighlighter 高亮插件
修改Bracket-Settings - User
Compare Side-By-Side 代码比较插件
CSS Format CSS格式化插件
CTags 函数、变量定位插件(sublime text 3124版本后新增defination功能,可取代这个插件)
需要安装ctags程序,添加到环境变量后生成.tags文件
Emmet HTML提示插件
HexViewer 十六进制预览
jQuery jquery提示插件
JsFormat Js格式化工具
PackageResourceViewer 插件源码查看工具
SideBarEnhancements 侧边栏增强工具
已经在仓库中移除,可以在github中下载后,改名字,放在packages目录中,地址:https://github.com/titoBouzout/SideBarEnhancements
修改Side Bar.sublime-menu,可以实现菜单汉化与精简
View Code
Syncedsidebar 在侧边栏显示当前文件位置
TrailingSpaces 去掉多余空格工具
Docblockr 注释快捷生成
SublimeLinter (代码检查工具)
SublimeLinter-php(https://www.liudon.org/1335.html,文中有错误,配置path时不需要指向php.exe,只需指向目录即可)
SublimeLinter-jshint(需要安装jshint和nodejs)
Sftp (代码实时同步到测试服务器插件)
SnippetMaker (快速创建snipt)
TortoiseGIT (git插件)
SublimeGit (git插件)
安装完插件后,将git安装目录下的bin文件夹加入到环境变量,ctrl+shit+p即可使用git命令
GitGutter-Edge (git插件)实时显示当前工作区的文件的区别
Gitignore (git插件)
TortoiseSVN (svn插件)
SublimeCodeIntel 代码提示插件(比较大,下载完120M左右)
Project Manager 项目管理插件
2、安装package control
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())
3、汉化(利用package controll 安装 ChineseLocalization插件即可)
4、注册(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 ——
5、快捷键配置示例
[ {"keys": ["ctrl+alt+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} }, {"keys": ["ctrl+alt+shift+r"], "command": "reindent" , "args": {"single_line": false}}, { "keys": ["ctrl+alt+shift+a"], "command": "alignment" }, { "keys": ["ctrl+shift++alt+c"], "command": "convert_to_utf8", "args": {"encoding": "GBK", "stamp": "0" } }, { "keys": ["ctrl+alt+shift+j"], "command": "js_format", "context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}] }, { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{"keys": ["ctrl+alt+o"],"command": "project_manager", "args": {"action": "new"}},
{"keys": ["ctrl+shift+space"],"command": "toggle_side_bar"}
]
6、个人设置文件示例
{ "Seti_ClosedFolder_dots": true, "Seti_ClosedFolder_remove": false, "Seti_ClosedFolder_same": false, "Seti_SB_big": true, "Seti_bold_heading": true, "Seti_bold_slctdfile_labels": true, "Seti_heading_font_12": true, "Seti_pad_5": false, "Seti_sb_big_padding": false, "Seti_sb_small_padding": false, "Seti_sb_tree_med": false, "Seti_sb_tree_small": false, "Seti_show_group_arrows": true,"draw_white_space": "selection", "font_face": "Courier New", "font_size": 11, "ignored_packages": [ "Vintage" ], "preview_on_click": false, "scroll_past_end": true, "tab_size": 4, "theme": "Seti_orig.sublime-theme", "translate_tabs_to_spaces": true, "update_check": false, "word_wrap": true }
7、安装插件
插件列表
convertToUtf8 解决中文乱码插件
IMEsupport 使中文输入法跟随光标
Seti_ui 主题插件
安装后可以用户配置文件,示例如下:
{
"theme": "Seti_orig.sublime-theme",
"Seti_ClosedFolder_dots": true,
"Seti_ClosedFolder_remove": false,
"Seti_ClosedFolder_same": false,
"Seti_SB_big": true,
"Seti_bold_heading": true,
"Seti_bold_slctdfile_labels": true,
"Seti_heading_font_12": true,
"Seti_pad_5": false,
"Seti_sb_big_padding": false,
"Seti_sb_small_padding": false,
"Seti_sb_tree_med": false,
"Seti_sb_tree_small": false,
"Seti_show_group_arrows": true,
}
AdvancedNewFile 新建文件,可输入完整路径
Alignment 代码对齐工具
AutoFileName 快速浏览目录下的文件
BracketHighlighter 高亮插件
修改Bracket-Settings - User
{ "bracket_styles": { "default": { "icon": "dot", // BH1's original default color for reference // "color": "entity.name.class", "color": "brackethighlighter.default", "style": "hightlight" }, ... } }
Compare Side-By-Side 代码比较插件
CSS Format CSS格式化插件
CTags 函数、变量定位插件(sublime text 3124版本后新增defination功能,可取代这个插件)
需要安装ctags程序,添加到环境变量后生成.tags文件
Emmet HTML提示插件
HexViewer 十六进制预览
jQuery jquery提示插件
JsFormat Js格式化工具
PackageResourceViewer 插件源码查看工具
SideBarEnhancements 侧边栏增强工具
已经在仓库中移除,可以在github中下载后,改名字,放在packages目录中,地址:https://github.com/titoBouzout/SideBarEnhancements
修改Side Bar.sublime-menu,可以实现菜单汉化与精简
[ { "caption": "-", "id": "side-bar-start-separator" }, { "caption": "新建文件…", "id": "side-bar-new-file", "command": "side_bar_new_file", "args": { "paths": [] } }, { "caption": "新建文件夹…", "id": "side-bar-new-directory", "command": "side_bar_new_directory", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-new-separator" }, { "caption": "打开所在文件夹", "id": "side-bar-reveal", "command": "side_bar_reveal", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-find-separator" }, { "caption": "剪切", "id": "side-bar-clip-cut", "command": "side_bar_cut", "args": { "paths": [] } }, { "caption": "复制", "id": "side-bar-clip-copy", "command": "side_bar_copy", "args": { "paths": [] } }, { "caption": "复制文件名", "id": "side-bar-clip-copy-name", "command": "side_bar_copy_name", "args": { "paths": [] } }, { "caption": "复制文件路径", "id": "side-bar-clip-copy-path", "command": "side_bar_copy_path_absolute_from_project_encoded", "args": { "paths": [] } }, { "caption": "复制文件路径 (Windows)", "id": "side-bar-clip-copy-path-windows", "command": "side_bar_copy_path_absolute_from_project_encoded_windows", "args": { "paths": [] } }, { "caption": "复制目录路径", "id": "side-bar-clip-copy-dir-path", "command": "side_bar_copy_dir_path", "args": { "paths": [] } }, { "caption": "文本复制", "id": "side-bar-clip-copy-as", "children": [ { "caption": "Relative Path From View Encoded", "id": "side-bar-clip-copy-path-relative-from-view-encoded", "command": "side_bar_copy_path_relative_from_view_encoded", "args": { "paths": [] } }, { "caption": "Relative Path From View", "id": "side-bar-clip-copy-path-relative-from-view", "command": "side_bar_copy_path_relative_from_view", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-path-relative-from-view-separator" }, { "caption": "Relative Path From Project Encoded", "id": "side-bar-clip-copy-path-relative-from-project-encoded", "command": "side_bar_copy_path_relative_from_project_encoded", "args": { "paths": [] } }, { "caption": "Relative Path From Project", "id": "side-bar-clip-copy-path-relative-from-project", "command": "side_bar_copy_path_relative_from_project", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-path-relative-from-project-separator" }, { "caption": "Absolute Path From Project Encoded", "id": "side-bar-clip-copy-path-absolute-from-project-encoded", "command": "side_bar_copy_path_absolute_from_project_encoded", "args": { "paths": [] } }, { "caption": "Absolute Path From Project", "id": "side-bar-clip-copy-path-absolute-from-project", "command": "side_bar_copy_path_absolute_from_project", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-path-absolute-from-project-separator" }, { "caption": "Path as URI", "id": "side-bar-clip-copy-path-encoded", "command": "side_bar_copy_path_encoded", "args": { "paths": [] } }, { "caption": "Path", "id": "side-bar-clip-copy-path", "command": "side_bar_copy_path", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-path-separator" }, { "caption": "Name Encoded", "id": "side-bar-clip-copy-name-encoded", "command": "side_bar_copy_name_encoded", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-name-encoded-separator" }, { "caption": "URL", "id": "side-bar-clip-copy-url", "command": "side_bar_copy_url", "args": { "paths": [] } }, { "caption": "URL Decoded", "id": "side-bar-clip-copy-url-decoded", "command": "side_bar_copy_url_decoded", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-url-separator" }, { "caption": "Tag a", "id": "side-bar-clip-copy-tag-a", "command": "side_bar_copy_tag_ahref", "args": { "paths": [] } }, { "caption": "Tag img", "id": "side-bar-clip-copy-tag-img", "command": "side_bar_copy_tag_img", "args": { "paths": [] } }, { "caption": "Tag script", "id": "side-bar-clip-copy-tag-script", "command": "side_bar_copy_tag_script", "args": { "paths": [] } }, { "caption": "Tag style", "id": "side-bar-clip-copy-tag-style", "command": "side_bar_copy_tag_style", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-tag-separator" }, { "caption": "Project Folders", "id": "side-bar-clip-copy-project-directories", "command": "side_bar_copy_project_directories", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-clip-copy-project-directories-separator" }, { "caption": "Content as UTF-8", "id": "side-bar-clip-copy-content-utf8", "command": "side_bar_copy_content_utf8", "args": { "paths": [] } }, { "caption": "Content as Data URI", "id": "side-bar-clip-copy-content-base-64", "command": "side_bar_copy_content_base64", "args": { "paths": [] } } ] }, { "caption": "粘贴", "id": "side-bar-clip-paste", "command": "side_bar_paste", "args": { "paths": [], "in_parent": "False" } }, { "caption": "-", "id": "side-bar-clip-separator" }, { "caption": "Duplicate…", "id": "side-bar-duplicate", "command": "side_bar_duplicate", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-duplicate-separator" }, { "caption": "重命名…", "id": "side-bar-rename", "command": "side_bar_rename", "args": { "paths": [] } }, { "caption": "移动到…", "id": "side-bar-move", "command": "side_bar_move", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-rename-move-separator" }, { "caption": "删除", "id": "side-bar-delete", "command": "side_bar_delete", "args": { "paths": [] } }, { "caption": "Empty", "id": "side-bar-empty", "command": "side_bar_empty", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-delete-separator" }, { "caption": "刷新", "id": "side-bar-refresh", "command": "refresh_folder_list" }, { "caption": "-", "id": "side-bar-refresh-separator" }, { "caption": "项目", "id": "side-bar-project", "children": [ { "caption": "编辑项目", "id": "side-bar-project-open-file", "command": "side_bar_project_open_file", "args": { "paths": [] } }, { "caption": "Edit Preview URLs", "id": "side-bar-preview-edit-urls", "command": "side_bar_preview_edit_urls", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-project-open-file-separator" }, { "command": "prompt_add_folder", "caption": "Add Folder to Project…", "mnemonic": "d" }, { "caption": "-", "id": "side-bar-promote-as-project-folder-separator" }, { "caption": "Promote as Project Folder", "id": "side-bar-project-item-add", "command": "side_bar_project_item_add", "args": { "paths": [] } }, { "caption": "Exclude From Project", "id": "side-bar-project-item-exclude", "command": "side_bar_project_item_exclude", "args": { "paths": [] } }, { "caption": "-", "id": "side-bar-project-item-separator" }, { "id": "side-bar-project-item-exclude-from-index-item", "command": "side_bar_project_item_exclude_from_index", "args": { "paths": [], "type": "item" } }, { "id": "side-bar-project-item-exclude-from-index-file", "command": "side_bar_project_item_exclude_from_index", "args": { "paths": [], "type": "file" } }, { "id": "side-bar-project-item-exclude-from-index-extension", "command": "side_bar_project_item_exclude_from_index", "args": { "paths": [], "type": "extension" } }, { "caption": "-", "id": "side-bar-project-item-separator" }, { "caption": "Remove Folder from Project", "id": "side-bar-project-item-remove-folder", "command": "side_bar_project_item_remove_folder", "args": { "paths": [] } } ] }, { "caption": "-", "id": "side-bar-donate-separator" }, // { // "caption": "Donate", // "command": "side_bar_donate", // "args": { // "paths": [] // } // }, { "caption": "-", "id": "side-bar-end-separator" } ]
View Code
Syncedsidebar 在侧边栏显示当前文件位置
TrailingSpaces 去掉多余空格工具
Docblockr 注释快捷生成
SublimeLinter (代码检查工具)
SublimeLinter-php(https://www.liudon.org/1335.html,文中有错误,配置path时不需要指向php.exe,只需指向目录即可)
{ "user": { "lint_mode": "save only", "mark_style": "fill", "paths": { "linux": [], "osx": [], "windows": ["D:\\Program Files\\phpstudy\\php55n"] }, } }
SublimeLinter-jshint(需要安装jshint和nodejs)
Sftp (代码实时同步到测试服务器插件)
SnippetMaker (快速创建snipt)
TortoiseGIT (git插件)
SublimeGit (git插件)
安装完插件后,将git安装目录下的bin文件夹加入到环境变量,ctrl+shit+p即可使用git命令
GitGutter-Edge (git插件)实时显示当前工作区的文件的区别
Gitignore (git插件)
TortoiseSVN (svn插件)
{ "autoCloseUpdateDialog": false, "autoCloseCommitDialog": true, "tortoiseproc_path": "D:\\Program Files\\TortoiseSVN\\bin\\TortoiseProc.exe" }
SublimeCodeIntel 代码提示插件(比较大,下载完120M左右)
Project Manager 项目管理插件
相关文章推荐
- 机房收费——Excel打开调整与注册控件的实现
- Linux 用户和组编程
- DataTable添加行出现“该行已经属于另一个表”的错误!
- 基于Java的socket对文件的传输
- ASP.NET MVC学习小记
- 环境变量的作用,为什么要设置环境变量?
- 九度oj 1111
- C++ 标准输入流总结
- hdu3098 最长回文(manacher算法)
- Tomcat Session管理机制(Tomcat源码解析七)
- JAVA并发编程之 CyclicBarrier
- linux新增用户并增加sudo权限
- UpdateData
- Linux电源管理(5)_Hibernate和Sleep功能介绍
- Xpath 使用记录
- wamp下多域名配置问题
- hdoj1879继续畅通工程
- 数据结构实验之链表一:顺序建立链表
- 【翻译】各种Payload免杀工具集
- ITA扩围,中国软件公司感受到压力了吗?