Sublime 配置&插件推荐
sublime 配置&插件推荐
Sublime编辑器的新鲜特性
同时选中多个 先选中一个 再Command + D
Command + P @搜索函数 #搜索关键字
迷你地图
安装package control
https://sublime.wbond.net/Package%20Control.sublime-package
Preferences-->Browser Packeages 进入到Packages文件夹向上一级找到Installed Packages 将下载的文件丢进去后重启Sublime
安装插件
使用ctrl+shift+p即可打开命令面板(Command Palette)
输入Package Conntrol 显示相关命令 而Package Control:Install Package就是安装新的插件 之后搜索插件就行了
插件推荐
https://sublime.wbond.net/ package control 所有插件列表
编码类
GBK Encoding support
https://github.com/akira-cn/sublime-gbk
可以使sublime正确的打开GBK文件 (对于linux和mac环境下的sublime尤其适用)
下载后将文件夹更名为GBK Encoding Support 丢入Packages中
ConvertToUTF8
https://github.com/seanliang/ConvertToUTF8
在命令面板中输入convert to utf8 就会显示从不同编码转为UTF8的选项
快速书写类
Emmet
https://github.com/sergeche/emmet-sublime
一个能帮你快速书写HTML的工具
前身就是zen coding
此工具的运行需要PyV8的支持 https://github.com/emmetio/pyv8-binaries 有安装教程 [使用包管理器安装会自动安装PyV8]
PS sublime3的pyv8需要Python3.3以上 !
emmet语法介绍 http://blog.wpjam.com/m/emmet-grammar/
ColorPicker
颜色选择器
https://github.com/weslly/ColorPicker
DocBlockr
生成标准JS注释
https://github.com/spadgos/sublime-jsdocs
jQuery
https://github.com/SublimeText/jQuery
jQuery代码提示 (可惜和CodeIntel冲突)
CodeIntel
https://github.com/SublimeCodeIntel/SublimeCodeIntel
代码提示
格式化类
HTML-CSS-JS Prettify -----强烈推荐
https://github.com/victorporof/Sublime-HTMLPrettify
格式化HTML CSS JS 都可以格式化
我的JS格式设置
"js": {
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"],
"brace_style": "end-expand", // [collapse|expand|end-expand|none]
"break_chained_methods": false, // Break chained method calls across subsequent lines //链式函数另起一行
"e4x": false, // Pass E4X xml literals through untouched
"end_with_newline": false, // End output with newline
"eval_code": false,
"indent_char": " ", // Indentation character
"indent_level": 0, // Initial indentation level
"indent_size": 4, // Indentation size
"indent_with_tabs": false, // Indent with tabs, overrides `indent_size` and `indent_char`
"jslint_happy": true, // Enable jslint-stricter mode //jslint格式
"keep_array_indentation": false, // Preserve array indentation
"keep_function_indentation": false,
"max_preserve_newlines": 10, // Number of line-breaks to be preserved in one chunk
"preserve_newlines": true, // Preserve line-breaks
"space_after_anon_function": true, // Add a space before an anonymous function's parens, ie. function () //匿名函数后的function加上空格
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false, // Add padding spaces within paren, ie. f( a, b )
"unescape_strings": false, // Decode printable characters encoded in xNN notation
"wrap_line_length": 0 // Wrap lines at next opportunity after N characters
}
Alignment
https://github.com/wbond/sublime_alignment
赋值语句对齐
其它
BracketHighlighter
https://github.com/facelessuser/BracketHighlighter%E2%80%8E
关于这里可以参考http://www.cnblogs.com/cart55free99/p/3502025.html
选中区域
这是按照层级选中的一个插件 每按一次命令就可以选中更多内容
expand-region
配置 KeyBindings -User 可以自己指定快捷键
[
{ "keys": ["ctrl+e"], "command": "expand_region" }
]
最后说说Settings
Sublime的设置和其他编辑器很不同 所有的设置都是通过编辑json格式的文件来实现
默认配置 Preferences--- Settings Default
用户级别配置 Preferences--- Settings User
{
"bold_folder_labels": true,
"caret_style": "wide",
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"drag_text": false,
"draw_white_space": "all",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": true,
"save_on_focus_lost": true,
"soda_classic_tabs": true,
"soda_folder_icons": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wide_caret": true,
"word_wrap": true,
"show_full_path": true,
"always_show_path_on_tabs": true
}
PS 这个配置是融合了Afterglow
{
"Seti_SB_big": true,
"Seti_SB_med": true,
"Seti_no_blue_bar": true,
"Seti_tabs_med": true,
"Seti_tabs_small": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "wide",
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"drag_text": false,
"draw_white_space": "all",
"folder_exclude_patterns":
[
"bower_components",
"node_modules"
],
"font_face": "Consolas",
"font_size": 16.0,
"highlight_line": true,
"ignored_packages":
[
],
"indent_to_bracket": true,
"overlay_scroll_bars": "enabled",
"save_on_focus_lost": true,
"sidebar_row_padding_large": true,
"sidebar_size_14": true,
"tab_size": 4,
"theme": "Afterglow.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"update_check": false,
"wide_caret": true,
"word_wrap": true,
"show_full_path": true
}
Theme的 所以得先下载好Theme
Sublime编辑器主题 http://www.cnblogs.com/cart55free99/p/3795144.html
PS
删除空白行
替换中搜索 ^\n 替换一栏不填
PS SUB3注册码
—– 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 ——
Sublime 配置&插件推荐的更多相关文章
- sublime text插件推荐
time: 2016-05-23 13:00 --- 用了Sublime Text有一段时间了,之前被周围的几个前端小伙伴灌输的思想就是,牛b的前端程序员都是手写代码的,用代码提示啥的都low,然而上 ...
- sublime 3插件推荐
新建文件以及快速注释 1. SublimeTmpl 快速生成文件模板 一直都很奇怪为什么sublime text 3没有新建文件模板的功能,像html头部的DTD声明每次都要复制粘贴.用Subli ...
- Sublime Text 插件推荐——for web developers
楼主向高大上的: web front-end development engineer (好吧,google就是这样翻译的 ^_^)们推荐 ST 插件,在此抛砖引玉: NO.1 :Emmet (原名: ...
- Sublime text2 插件推荐
HTML-CSS-JS Prettify: 前端插件,使用 ctrl+shift+h 格式化代码
- sublime前端插件以及常用快捷键
29个常用 Sublime Text 插件推荐 来源:互联网 作者:佚名 时间:06-18 09:27:55 [大 中 小] Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,P ...
- sublime Text3配置及快捷键、插件推荐总结
一.基础 1.重要文档: sublime Text3官方文档中文版:http://feliving.github.io/Sublime-Text-3-Documentation/ sublime Te ...
- Sublime Text 使用介绍、全套快捷键及插件推荐
开篇:如果说Notepad++是一款不错Code神器,那么Sublime Text应当称得上是神器滴哥.Sublime Text最大的优点就是跨平台,Mac和Windows均可完美使用:其次是强大的插 ...
- Sublime Text 2 安装配置插件
最近学习python,看网上推荐用sublime text2挺方便,就学习了一下对sublime text2 安装插件,先放在这里,以备以后查找 根据晚上资料修改,原文请看这里 Python的自动补全 ...
- 【编程工具】Sublime Text3的安装和常用插件推荐
本人刚刚学习 HTML,曾经上网找过一些编写 HTML 的软件,但感觉都不太好,经过三挑四选下,最终我决定选择 Sublime Text3 这款软件来作为学习工具,上网找到了许多实用的插件,在这里给大 ...
随机推荐
- Swift语言iOS8的蓝牙Bluetooth解析
开发中央步骤: 1.添加CoreBluetooth.framework框架到你的工程 2.继承两个协议:CBCentralManagerDelegate和CBPeripheralDelegate 个人 ...
- winfrom播放动态图片
winfrom是不能直接加载的动态图片的.只能够自己写方法实现. 具体代码如下: using System; using System.Collections.Generic; using Syste ...
- js中的数组和字符串的一些方法
数组的一些方法: 1.join()和split()方法 <script type="text/javascript">var x;var a=new Array();a ...
- Sql Sever 字符串截取汉字
最近需要在SQL的字符串中截取汉字,利用unicode函数判断字符的unicode编码,根据编码范围过滤掉非汉字字符. 写成了一个function /*@str 需要获取汉字的字符串*/ create ...
- WCF创建到使用到发布
1,在VS里面新建一个类库项目 2,向类库项目里添加WCF服务文件 3.按照WCF约束规范编写接口和实现类 using System; using System.Collections.Generic ...
- C++_知识点_结构体/枚举/联合
//C++中结构体的不同之处 #include <iostream> #include <string> using namespace std; int main(void) ...
- C++ template学习二 类模板定义及实例化
一个类模板(也称为类属类或类生成类)允许用户为类定义一种模式,使得类中的某些数据成员.默写成员函数的参数.某些成员函数的返回值,能够取任意类型(包括系统预定义的和用户自定义的). 如果一个类中数据成员 ...
- Linux常用指令(待补充)
1.cd进入目录 2../shuntdown.sh 停止tomcat 3.ps -ef |grep +进程名 查看进程状态 4.kill +进程名 强杀kill -9 +进程 5./start ...
- C学习之指针强化
char *p = (char *)malloc(100); malloc是用于分配内存的函数,它的参数为int型,表示分配多少个字节长度,其返回类型为void*,在这里用char*就是强制转化,指定 ...
- POJ1323-Game Prediction
描述: Suppose there are M people, including you, playing a special card game. At the beginning, each p ...