sublime text 3 字体2和3怎么设置修改字体

西西软件下载最安全的下载网站、值得信赖的软件下载站!
→ Sublime Text2 对比 Sublime Text 3哪个好?Sublime 3使用总结
v3.3111 汉化特别版
类型:文本编辑大小:37.7M语言:中文 评分:5.7
1.Sublime Text2 or Sublime Text 3?虽然两者用起来差不多,但还是用最新版本吧,虽然是beta版,但是毕竟也有了一些更新,比如界面UI的一些小的变化,安装的package文件也是直接安装在了sublime text3文件夹里面,而不是安装在C盘的其他目录,同时也是一个绿色版本,一些配置也能够方便备份保留。
类别: 文本编辑 &&&大小:37.7M
&&&语言: 中文
2.Sublime Text3是绿色版的,如何添加到右键菜单,可以快速使用Sublime Text3打开?(1)cmd命令中运行:regedit,打开注册表。(2)依次找到HKEY_CLASSESS_ROOT-&*-&Shell,下面新建项,命名为Edit with Sublime Text3。(3)在项“Edit with Sublime Text”下新建字符串值,命名为Icon,值为“C:\Program Files\Sublime Text Build 3065\sublime_text.exe,0”,其中黑色地址为 Sublime Text程序文件地址。(4)在项“Edit with Sublime Text”下新建项Command,该Command项下默认值修改为“C:\Program Files\Sublime Text Build 3065\sublime_text.exe,1”。(5)设置完成后,无需重启电脑,就可以在右键菜单中,显示Edit with Sublime Text3。3.Sublime Text3基本界面等参数设置?Sublime Text3默认界面设置配置文件在Preferences----&Settings-Default。我们可以通过在Settings-User配置文件中增加值来覆盖Setting-Default中的设置值,设置值的格式可以参看Setting-Default配置文件中设置,例如下面我设置的字体大小、行高亮显示和侧边栏文件夹图标加粗。设置完成后Ctrl+S保存后,无需重启Sublime Text3即可立即生效。4.Sublime Text3常用快捷键?有很多快捷键是和操作系统一致的,也有很多很有意思的其他快捷键操作,默认的快捷键设置在Preferences---&Key Bindings-Default中,里面可以查到所有的快捷键,同样可以在Key Bindings-User中,重新设置新的值,来覆盖默认设置。下图是我自定义设置的两个快捷键。下面把我常用的一些快捷键总结如下:(1)格式化代码:alt+shift+f  自己设置的,选择代码后按此快捷键可以格式化代码。(2)折叠代码:ctrl+shift+[  自己设置的,可以折叠方法里面的代码,当一个类文件中方法比较多时,可以使用。(3)打开刚刚关闭的窗口:ctrl+shift+T  默认设置。(4)全屏显示:F11  默认设置。(5)免打扰全屏显示:Shift+F11  默认设置,比F11显示的更大。(6)多处选择相同的词:Ctrl+D,回退选择Ctrl+U  默认设置,非常有用,可以试试。(7)取消窗口显示:ESC  默认设置,比如当我们Ctrl+F搜索时,底部会有搜索框,由于找不到上面关闭×,因此按下ESC,就可以很容易关闭了。(8)在代码上面新增一行:Ctrl+shift+Enter  默认设置(9)逐词移动:Ctrl+左右键  默认设置,直接按左右键是一个字母一个字母的移动。(10)显示类和方法提纲:Ctrl+R  默认设置,可以很容易知道一个类中都有哪些方法。(11)显示n个窗口:alt+shift+1,或者2,3...显示n个窗口,例如写css的时候,可以一个窗口开html,一个窗口开css5.Sublime Text3一些有意思的插件?Sublime Text3有很多有意思的插件,可以方便我们的编码,但是插件不应该泛滥使用,否则的话,还不如用IDE呢。为方便插件的安装和管理,第一个应该安装的插件,其实就是包管理插件,Package Control,这样以后安装插件就方便多了。  (1)Package Control插件安装:1)选择Sublime Text3菜单栏的View---&Show Console,底部出现Console框。2)将下面代码输入Console框中,按回车,等待安装成功即可。  import&urllib.request,os,&h&=&'ebf27d836c04bb0cbaf282'&+&'d0e7accb37ca9d6b2e4b7d';&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)3)安装成功后,之后安装别的包,直接按下快捷键Ctrl+Shift+P,输入install,即可安装包;输入remove即可删除已经安装的包。(2)折叠状态保留插件:BufferScroll前面我们设置了折叠代码的快捷键,但是每次重启Sublime Text3或者重新打开页面后,折叠状态就会消失,安装完成此插件后,代码折叠状态就能够保留了。安装方法如下:按下Ctrl+Shift+P--&输入install,选择Install Package--&输入BufferScroll,安装即可。&6.Sublime Text3配置X-debug断点调试PHP代码?Sublime Text3写js、css和html挺好用的,写php也非常舒服,虽然调试PHP用别的软件比较好,但是感觉用习惯Sublime Text3了,因此也想办法为它设置完成调试功能,对于调试一般小的项目,足够了。设置步骤如下:(1)为PHP配置x-debug插件1)新建一个php文件,写一个方法phpinfo(),在浏览器中运行,右键查看源代码,将html代码复制进剪切板。&2)打开网址:http://xdebug.org/wizard.php,将前面复制的html源代码粘贴到该网站文本框内,点击Analyse my phpinfo() output。3)按照分析结果说明,安装合适的x-debug插件,直至安装成功。4)修改php.ini文件,增加一下代码:xdebug.remote_enable=1xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_log=&C:\Program&Files\PHP\xdebuglog\xdebug.log&其中xdebug.remote_log配置xdebug日志文件地址,可以设置成自己想要的地址。5)重启Apache或其他在用的Web Server。至此,为php配置x-debug插件成功。(2)配置Sublime Text3 x-debug插件1)按下Ctrl+Shift+P--&输入install,选择Install Package--&安装Xdebug client。2)选择Sublime Text3菜单栏:Tools---&Xdebug---&Settings---&User自定义设置调试信息,其中Settings---&Default是Xdebug默认的配置文件。(同Sublime Text3软件类似,插件也有自己默认的配置文件和供用户自定义设置的配置文件)&  3)Settings-User配置增加配置信息如下:其中launch_browser设置为true,那么调试时,会打开浏览器;close_on_stop设置为true,那么调试结束时,可以关闭不必要的显示的调试窗口;url设置调试入口地址,当按下调试按键时,直接就会跳入该入口地址。 至此,就可以使用x-debug进行调试了,但是如果觉得使用Xdebug默认的快捷键不方便,那么可以设置自己想要的快捷键。设置方法见下面。4)自定义调试快捷键由于Xdebug没有自己的快捷键自定义配置文件,因此我们在Sublime Text3软件快捷键配置文件中进行设置。打开菜单栏Preferences---&Key Bindings-User,新增如下代码:其中的快捷键是Xdebug默认的,修改成自己喜欢的快捷键就行了,例如与vs或者eclipse一致。至此,Sublime Text3基本设置就好了,设置的差不多,就去安心的写代码吧。
可扩展标记语言是一种元标记语言,即定义了用于定义其他特定领域有关语义的结构化的标记语言,这些标记语言将文档分成许多部件并对这些部件加以标识。技术已经广泛应用于应用系统的开发,大多数的商用平台都支持标准。一些主要的网络设备制造商,如等,生产的网络设备也已提供了对的支持,以利于今后基于的网络管理。关于的一件很重要的事情是,可被类似记事本这样的简单的文本编辑器来创建和编辑。不过,在您开始使用进行工作时,您...
06-29 / 19.5M
推荐理由:ultraEdit 32 破解版 简体中文 内有安装说明,完全免费,无试用期的。该软件功能强大,能打开各种格式的文件
11-19 / 279.7M
推荐理由:Adobe Dreamweaver CS6 是 Adobe Creative Suite 6 系列中的 HTML 编辑器和网页设计软件,是最优秀的可视化
02-26 / 3.2M
推荐理由:一套功能强大,可取代记事本的文字编辑器,拥有无限制的撤消与重做、英文拼字检查、自动换行、列数标记、搜
04-14 / 18.7M
推荐理由:Sublime Text被称作Windows下的TextMate,而根据其官网介绍,Sublime Text的特点如下:拥有高效、没有干扰的
02-23 / 3.8M
推荐理由:Notepad++是一款非常有特色的编辑器,软件小巧高效,支持27种编程语言,通吃C,C++,Java,C#,XML,HTML,PHP,JS
04-24 / 37.7M
推荐理由:SublimeText是一个代码编辑器。也是HTML和散文先进的文本编辑器。漂亮的用户界面和非凡的功能,例如:迷你地
西西软件园提供一些非常好用的代码编辑器免费下载,都是一些非常有特色的编辑器,软件小巧高效,支持种编程语言,通吃,,,,,,,等。是开源软件,可以免费使用。...
03-31 / 33.8M
推荐理由:本次已经纠正官方多处翻译错误地方,UltraEdit是能够满足你一切编辑需要的编辑器。UltraEdit是一套功能强大
02-23 / 3.8M
推荐理由:Notepad++是一款非常有特色的编辑器,软件小巧高效,支持27种编程语言,通吃C,C++,Java,C#,XML,HTML,PHP,JS
04-24 / 37.7M
推荐理由:SublimeText是一个代码编辑器。也是HTML和散文先进的文本编辑器。漂亮的用户界面和非凡的功能,例如:迷你地
06-29 / 19.5M
推荐理由:ultraEdit 32 破解版 简体中文 内有安装说明,完全免费,无试用期的。该软件功能强大,能打开各种格式的文件
04-14 / 18.7M
推荐理由:Sublime Text被称作Windows下的TextMate,而根据其官网介绍,Sublime Text的特点如下:拥有高效、没有干扰的
02-26 / 3.2M
推荐理由:一套功能强大,可取代记事本的文字编辑器,拥有无限制的撤消与重做、英文拼字检查、自动换行、列数标记、搜
12-0206-2402-2202-2201-1901-2901-2801-2701-2201-17
阅读本文后您有什么感想? 已有23人给出评价!
名称大小下载为了账号安全,请及时绑定邮箱和手机
Sublime Text 3 的 sidebar 里面的字体能否调的大一些?
Sublime Text 2 的 sidebar 里面的字体能否调的大一些?
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2因为觉得博客园自带的代码高亮样式很单一,不符合作为前端的我的审美习惯,于是下定决心要想办法折腾出一个方法来应用上另外一套代码高亮样式。
虽然探索的过程是很痛苦的,但最后还是成功了,但也不枉付出的那些努力。近来有网友问及如何实现,现分享出来,看完本文后你也可以把自己博客的代码整得漂亮些,让别人看着舒服些了。
方法其实是很麻烦的,即使是写了好几篇博客了对这个过程我已经娴熟了,但其实也还是挻麻烦的。不过谁叫我有是个偏执狂呢,为了让页面漂亮我愿麻烦自己,舒服大家。如果你有更好的方法那当然更好。
安装sublimehighlight
我在博客里应用的样式是SublimeText编辑器里面的主题,这跟我用它来编写代码有关。其实如果ST支持复制为富文本形式的话,事情就要方便得多,直接copy然后paste到word里就把样式带上了,包括缩进,代码高亮等。遗憾的是它不支持。所以出路便是找一个可用的ST插件让它支持富文本复制。
好在ST流行度大,社区活跃,插件众多,还真有款能够完成我需求的插件--/。更详细的关于如何安装的问题等可见它的项目页面。
简单点其实跟安装其他ST插件是一样的,先Ctrl+Shift+P调出control panel,然后输入install package,不用输完,当输入了Install后便出来了,然后回车等待插件列表的显示,这个过程大概有个几秒钟的样子。
然后输入插件名称sublimehighlight,选中并进行安装。如果这一步进行顺利,则跳到下一节。
当你进行到上面一步发现搜不出该插件时,需要手动添加该插件的repo到本地。
具体做法是退出刚才的界面重新输入Ctrl+Shift+P调出control panel,输入add repository 选中并回车。
这时界面下方会出现输入repo地址的地方,将输入后回车确定。
当提示添加成功后再次进行上面安装插件的步骤来到插件列表,输入sublimehighlight,选中该插件进行安装,如果一切顺利,恭喜你万里长征第一步走完!
设置喜欢的代码样式
安装完成后,可以设置你喜欢的样式,这个样式是你复制出来的样式,跟你在ST里面用的代码样式是没有关系的。也就是说最终复制出来的代码的样式以这个插件的设置为准。
可选的样式可以在插件的GitHub主页看到,下图直接来自其项目页面,图中包括了主题的名称和预览:
设置方法是依次点开preferences=&package settings=&sublimehighlight=&settings - user
会调出一个设置页面,输入喜欢的样式的名字,像下面这样:
当然,还可以指定要使用的字体等其他设置选项,同样,请前往插件主页进行参考。
将代码复制为HTML
像上面那样弄好后,最后一步,就是把代码复制成HTML形式放到博客里去啦!
依次点开edit=&highlight=&convert to html,此命令会将代码转成HTML形式。
之后,在新出来的标签中,请将class为highlight的div直接ctrl+c复制。这一块便是我们需要的东西。
最后,在写博客的时候,以HTML方式编辑博客,将刚才的内容进行粘贴。噢啦!
确定之后的效果:
过程是有点麻烦吧,如果代码量大的话,这个工作将会很恼人。Anyway, 完全看你愿不愿意了。Enjoy!
阅读(...) 评论()
恭喜妳发现本彩蛋, happy coding
\(^___________^)/前端神器之Sublime Text2/3简单明了使用总结 - 推酷
前端神器之Sublime Text2/3简单明了使用总结
为什么叫神器呢?
我总结如下:
第一:也是最重要的,它占内存很小(就如同notepad++那般迅速打开,所以那款其实也不错~)。一般IDE比如WebStorm(它也是一款神器来着),Aptana(也比较常用),还有前后结合的Zend Studio 等都略显臃肿,打开太慢,耗内存太大。
第二:主题丰富,漂亮的界面。各式各样的主题可以满足你的视觉美。
第三:支持的插件丰富多样。很多插件都能让你获得不一样的体验。
第四:支持命令快捷键方式。就如同vim那般有广阔的命令快捷。
好吧,那就来下载安装吧。
Sublime Text2或者3都没关系,3也只是作为2的beta版本,所以还是推荐3吧,支持新版嘛。2和3在使用方法功能上也有差异~
(1)你可以去官网下载对应版本,但可能需要输入序列号什么的。
访问/2下载 2.x 版本。
或从/3下载 3.x 版本。
注册码(仅供个人非商业应用):
----- BEGIN LICENSE ------
Single User License
EA7E-814345
51F47F09 4EABEFF0 8B1207DC
A76A6EA3 E1A1CA7A DC1F,784
8EDC1C82 3F2A58B9 1C0C8B24
6233DE5C ADC5C2F9 61FB8A04
171B63EF 86BA423F 6AC884FD 3273A7AA
5F50A6DB CE7859AE D62D2B37 AEEDD8C2
078A8A20 70EEA791 84F48C1E 8ABA7DEB
0BAA045 6F67AED8
------ END LICENSE ------
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
91424C9D A45400BF FFB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDBC0 EFCCA6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------
(2)一般官网下来的都是英文原版的,可以网上找些中文包放进去就行了。你也可以直接去其他网站下载Sublime Text,一般下下来就可以直接使用了。。
先来基本配置
基本配置可以在窗口布局的那几个选项自己设定,当然也可以在配置文件里边直接开干。
配置文件在:preferences-setting user& 或者 setting default
因为user的可以覆盖default的,而且你重装啊什么的也不怕被抹掉,所以推荐你直接写进setting user里边
我是text3 中文版的:
直接在里边写点配置信息就行了,比如:
//字体大小
&font_size&: 11.0,
//字体类型
&font_face&: &微软雅黑&,
// 设置每一行到顶部,以像素为单位的间距,效果相当于行距
&line_padding_top&: 2,
// 设置每一行到底部,以像素为单位的间距,效果相当于行距
&line_padding_bottom&: 2,
//检查更新
&update_check&:false,
//长单词换行形式
&word_wrap&:&auto&,
// html和xml下突出显示光标所在标签的两端,影响HTML、XML、CSS等
&match_tags&: true,
// 是否显示代码折叠按钮
&fold_buttons&: true,
// 代码提示
&auto_complete&: true,
// 默认编码格式
&default_encoding&: &UTF-8&,
// 左边边栏文件夹动画
&tree_animation_enabled&: true,
//删除你想要忽略的插件
&ignored_packages&:
&Vintage&,
&YUI Compressor&
下边总结了一些更多的配置信息,需要的可打开看看~
1 // While you can edit this file, it's best to put your changes in
3 // &User/Preferences.sublime-settings&, which overrides the settings in here.
5 // Settings may also be placed in file type specific options files, for
6 // example, in Packages/Python/Python.sublime-settings for python files.
// Sets the colors used within the text area
//主题文件
&color_scheme&: &Packages/Color Scheme - Default/Monokai.tmTheme&,
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, &Preferences (Linux).sublime-settings&.
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
//字体样式、大小
&font_face&: &&,
&font_size&: 10,
// Valid options are &no_bold&, &no_italic&, &no_antialias&, &gray_antialias&,
// &subpixel_antialias&, &no_round& (OS X only) and &directwrite& (Windows only)
// 字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿
// subpixel_antialias和no_round是OS X系统独有的
// directwrite是Windows系统独有的
&font_options&: [],
// Characters that are considered to separate words
// 在文字上双击会全选当前的内容,如果里面出现以下字符,就会被截断
&word_separators&: &./\\()\&'-:,.;&&~!@#$%^&*|+=[]{}`~?&,
// Set to false to prevent line numbers being drawn in the gutter
// 是否显示行号
&line_numbers&: true,
// Set to false to hide the gutter altogether
// 是否显示行号边栏
&gutter&: true,
// Spacing between the gutter and the text
// 行号边栏和文字的间距
&margin&: 4,
// Fold buttons are the triangles shown in the gutter to fold regions of text
// 是否显示代码折叠按钮
&fold_buttons&: true,
// Hides the fold buttons unless the mouse is over the gutter
// 不管鼠标在不在行号边栏,代码折叠按钮一直显示
&fade_fold_buttons&: true,
// Columns in which to display vertical rulers
//列显示垂直标尺,在中括号里填入数字,宽度按字符计算
&rulers&: [],
// Set to true to turn spell checking on by default
// 是否打开拼写检查
&spell_check&: false,
// The number of spaces a tab is considered equal to
// Tab键制表符宽度
&tab_size&: 4,
// Set to true to insert spaces when tab is pressed
// 设为true时,缩进和遇到Tab键时使用空格替代
&translate_tabs_to_spaces&: false,
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
// translate_tabs_to_spaces设置为true,Tab和Backspace的删除/插入作用于制表符宽度
// 否则作用于单个空格
&use_tab_stops&: true,
// Set to false to disable detection of tabs vs. spaces on load
// false时禁止在载入的时候检测制表符和空格
&detect_indentation&: true,
// Calculates indentation automatically when pressing enter
// 按回车时,自动与制表位对齐
&auto_indent&: true,
// Makes auto indent a little smarter, e.g., by indenting the next line
// after an if statement in C. Requires auto_indent to be enabled.
//针对C语言的
&smart_indent&: true,
// Adds whitespace up to the first open bracket when indenting. Requires
// auto_indent to be enabled.
// 需要启用auto_indent,第一次打开括号缩进时插入空格?(没测试出来效果…)
&indent_to_bracket&: false,
// Trims white space added by auto_indent when moving the caret off the
// 显示对齐的白线是否根据回车、tab等操作自动填补
&trim_automatic_white_space&: true,
// Disables horizontal scrolling if enabled.
// May be set to true, false, or &auto&, where it will be disabled for
// source code, and otherwise enabled.
// 是否自动换行,如果选auto,需要加双引号
&word_wrap&: &auto&,
// Set to a value other than 0 to force wrapping at that column rather than the
// window width
// 设置窗口内文字区域的宽度
&wrap_width&: 0,
// Set to false to prevent word wrapped lines from being indented to the same
// 防止被缩进到同一级的字换行
&indent_subsequent_lines&: true,
// Draws text centered in the window rather than left aligned
// 如果没有定义过,则文件居中显示(比如新建的文件)
&draw_centered&: false,
// Controls auto pairing of quotes, brackets etc
// 自动匹配引号,括号等
&auto_match_enabled&: true,
// Word list to use for spell checking
// 拼写检查的单词列表路径
&dictionary&: &Packages/Language - English/en_US.dic&,
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the &minimapBorder& key in
// the color scheme
// 代码地图的可视区域部分是否加上边框,边框的颜色可在配色方案上加入minimapBorder键
&draw_minimap_border&: false,
// If enabled, will highlight any line with a caret
// 突出显示当前光标所在的行
&highlight_line&: false,
// Valid values are &smooth&, &phase&, &blink&, &wide& and &solid&.、
// 设置光标闪动方式
&caret_style&: &smooth&,
// Set to false to disable underlining the brackets surrounding the caret
// 是否特殊显示当前光标所在的括号、代码头尾闭合标记
&match_brackets&: true,
// Set to false if you'd rather only highlight the brackets when the caret is
// next to one
// 设为false时,只有光标在括号或头尾闭合标记的两端时,match_brackets才生效
&match_brackets_content&: true,
// Set to false to not highlight square brackets. This only takes effect if
// match_brackets is true
// 是否突出显示圆括号,match_brackets为true生效
&match_brackets_square&: true,
// Set to false to not highlight curly brackets. This only takes effect if
// match_brackets is true
// 是否突出显示大括号,match_brackets为true生效
&match_brackets_braces&: true,
// Set to false to not highlight angle brackets. This only takes effect if
// match_brackets is true
// 是否突出显示尖括号,match_brackets为true生效
&match_brackets_angle&: false,
// Enable visualization of the matching tag in HTML and XML
// html和xml下突出显示光标所在标签的两端,影响HTML、XML、CSS等
&match_tags&: true,
// Highlights other occurrences of the currently selected text
// 全文突出显示和当前选中字符相同的字符
&match_selection&: true,
// Additional spacing at the top of each line, in pixels
// 设置每一行到顶部,以像素为单位的间距,效果相当于行距
&line_padding_top&: 0,
// Additional spacing at the bottom of each line, in pixels
// 设置每一行到底部,以像素为单位的间距,效果相当于行距
&line_padding_bottom&: 0,
// Set to false to disable scrolling past the end of the buffer.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
// 设置为false时,滚动到文本的最下方时,没有缓冲区
&scroll_past_end&: true,
// This controls what happens when pressing up or down when on the first
// or last line.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
// 控制向上或向下到第一行或最后一行时发生什么(没明白也没试出来)
&move_to_limit_on_up_down&: false,
// Set to &none& to turn off drawing white space, &selection& to draw only the
// white space within the selection, and &all& to draw all white space
// 按space或tab时,实际会产生白色的点(一个空格一个点)或白色的横线(tab_size设置的制表符的宽度),选中状态下才能看到
// 设置为none时,什么情况下都不显示这些点和线
// 设置为selection时,只显示选中状态下的点和线
// 设置为all时,则一直显示
&draw_white_space&: &selection&,
// Set to false to turn off the indentation guides.
// The color and width of the indent guides may be customized by editing
// the corresponding .tmTheme file, and specifying the colors &guide&,
// &activeGuide& and &stackGuide&
// 制表位的对齐白线是否显示,颜色可在主题文件里设置(guide,activeGuide,stackGuide)
&draw_indent_guides&: true,
// Controls how the indent guides are drawn, valid options are
// &draw_normal& and &draw_active&. draw_active will draw the indent
// guides containing the caret in a different color.
// 制表位的对齐白线,draw_normal为一直显示,draw_active为只显示当前光标所在的代码控制域
&indent_guide_options&: [&draw_normal&],
// Set to true to removing trailing white space on save
// 为true时,保存文件时会删除每行结束后多余的空格
&trim_trailing_white_space_on_save&: false,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
// 为true时,保存文件时光标会在文件的最后向下换一行
&ensure_newline_at_eof_on_save&: false,
// Set to true to automatically save files when switching to a different file
// or application
// 切换到其它文件标签或点击其它非本软件区域,文件自动保存
&save_on_focus_lost&: false,
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
// 编码时不能自动检测编码时,将自动检测ASCII, UTF-8 和 UTF-16
&fallback_encoding&: &Western (Windows 1252)&,
// Encoding used when saving new files, and files opened with an undefined
// encoding (e.g., plain ascii files). If a file is opened with a specific
// encoding (either detected or given explicitly), this setting will be
// ignored, and the file will be saved with the encoding it was opened
// 默认编码格式
&default_encoding&: &UTF-8&,
// Files containing null bytes are opened as hexadecimal by default
// 包含空字节的文件被打开默认为十六进制
&enable_hexadecimal_encoding&: true,
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
// 每一行结束的时候用什么字符做终止符
&default_line_ending&: &system&,
// When enabled, pressing tab will insert the best matching completion.
// When disabled, tab will only trigger snippets or insert a tab.
// Shift+tab can be used to insert an explicit tab when tab_completion is
// enabled.
// 设置为enabled时,在一个字符串间按Tab将插入一个制表符
// 设置为true时,按Tab会根据前后环境进行代码自动匹配填补
&tab_completion&: true,
// Enable auto complete to be triggered automatically when typing.
// 代码提示
&auto_complete&: true,
// The maximum file size where auto complete will be automatically triggered.
// 代码提示的大小限制
&auto_complete_size_limit&: 4194304,
// The delay, in ms, before the auto complete window is shown after typing
// 代码提示延迟显示
&auto_complete_delay&: 50,
// Controls what scopes auto complete will be triggered in
// 代码提示的控制范围
&auto_complete_selector&: &source - comment&,
// Additional situations to trigger auto complete
// 触发代码提示的其他情况
&auto_complete_triggers&: [ {&selector&: &text.html&, &characters&: &&&} ],
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
// 设为false时,选择提示的代码按回车或点击可以输出出来,但选择true时不会输出而是直接换行
&auto_complete_commit_on_tab&: false,
// Controls if auto complete is shown when snippet fields are active.
// Only relevant if auto_complete_commit_on_tab is true.
// auto_complete_commit_on_tab必须为true,控制代码提示的活跃度
&auto_complete_with_fields&: false,
// By default, shift+tab will only unindent if the selection spans
// multiple lines. When pressing shift+tab at other times, it'll insert a
// tab character - this allows tabs to be inserted when tab_completion is
// enabled. Set this to true to make shift+tab always unindent, instead of
// inserting tabs.
// 设置为false,使用Shift + tab总是插入制表符
&shift_tab_unindent&: false,
// If true, the copy and cut commands will operate on the current line
// when the selection is empty, rather than doing nothing.
//复制与剪切的
&copy_with_empty_selection&: true,
// If true, the selected text will be copied into the find panel when it's
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
// 选中的文本按Ctrl + f时,自动复制到查找面板的文本框里
&find_selected_text&: true,
// When drag_text is enabled, clicking on selected text will begin a
// drag-drop operation
//拖动文本
&drag_text&: true,
// User Interface Settings
// The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc)
&theme&: &Default.sublime-theme&,
// Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to
// scroll slower, or set to larger than 1 to scroll faster
// 滚动的速度
&scroll_speed&: 1.0,
// Controls side bar animation when expanding or collapsing folders
// 左边边栏文件夹动画
&tree_animation_enabled&: true,
// Makes tabs with modified files more visible
//高亮未保存文件
&highlight_modified_tabs&: false,
// 标签页的关闭按钮
&show_tab_close_buttons&: true,
// Show folders in the side bar in bold
//在侧边栏显示文件夹
&bold_folder_labels&: false,
// OS X 10.7 only: Set to true to disable Lion style full screen support.
// Sublime Text must be restarted for this to take effect.
//开启全屏,针对 OS X 10.7
&use_simple_full_screen&: false,
// OS X only. Valid values are true, false, and &auto&. Auto will enable
// the setting when running on a screen 2880 pixels or wider (i.e., a
// Retina display). When this setting is enabled, OpenGL is used to
// accelerate drawing. Sublime Text must be restarted for changes to take
// effect.
//针对OS X,使用OpenGL画图,需重启
&gpu_window_buffer&: &auto&,
// Valid values are &system&, &enabled& and &disabled&
//延迟滚动条
&overlay_scroll_bars&: &system&,
// Application Behavior Settings
// Exiting the application with hot_exit enabled will cause it to close
// immediately without prompting. Unsaved modifications and open files will
// be preserved and restored when next starting.
// Closing a window with an associated project will also close the window
// without prompting, preserving unsaved changes in the workspace file
// alongside the project.
// 热退出功能!退出时不会提示是否保存文件,而是直接退出
&hot_exit&: true,
// remember_open_files makes the application start up with the last set of
// open files. Changing this to false will have no effect if hot_exit is
//记忆之前打开的文件
&remember_open_files&: true,
// OS X only: When files are opened from finder, or by dragging onto the
// dock icon, this controls if a new window is created or not.
//始终在新窗口打开文件,针对OS X
&open_files_in_new_window&: true,
// OS X only: This controls if an empty window is created at startup or not.
//在打开程序的时候新建窗口,针对OS X
&create_window_at_startup&: true,
// Set to true to close windows as soon as the last file is closed, unless
// there's a folder open within the window. This is always enabled on OS X,
// changing it here won't modify the behavior.
//当没有文件时,关闭程序,针对Windows
&close_windows_when_empty&: false,
// Show the full path to files in the title bar.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
//在标题栏显示绝对路径
&show_full_path&: true,
// Shows the Build Results panel when building. If set to false, the Build
// Results can be shown via the Tools/Build Results menu.
&show_panel_on_build&: true,
// Preview file contents when clicking on a file in the side bar. Double
// clicking or editing the preview will open the file and assign it a tab.
//在侧边栏预览文件
&preview_on_click&: true,
// folder_exclude_patterns and file_exclude_patterns control which files
// are listed in folders on the side bar. These can also be set on a per-
// project basis.
// 哪些文件会被显示到边栏上
&folder_exclude_patterns&: [&.svn&, &.git&, &.hg&, &CVS&],
&file_exclude_patterns&: [&*.pyc&, &*.pyo&, &*.exe&, &*.dll&, &*.obj&,&*.o&, &*.a&, &*.lib&, &*.so&, &*.dylib&, &*.ncb&, &*.sdf&, &*.suo&, &*.pdb&, &*.idb&, &.DS_Store&, &*.class&, &*.psd&, &*.db&],
// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
&binary_file_patterns&: [&*.jpg&, &*.jpeg&, &*.png&, &*.gif&, &*.ttf&, &*.tga&, &*.dds&, &*.ico&, &*.eot&, &*.pdf&, &*.swf&, &*.jar&, &*.zip&],
// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
// 删除你想要忽略的插件,需要重启
&ignored_packages&: [&Vintage&]
接下来就是它的最强项,插件的安装:
插件的安装有两个办法:
(1)直接把插件放到它的安装路径对应文件包packages里面去,不知道在哪的可以直接打开 preferences-&Browse packages
放进去之后软件会自动检测
(2)使用命令方式直接让软件自己下载安装。(使用package control组件)
按下Ctrl+Shift+P调出命令面板,输入install, 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。(这一步你要先安装下面那个package control插件)
(1)package control
通过快捷键 ctrl+`&或者 View & Show Console 菜单打开控制台
然后粘贴对应的版本代码进去,然后回车让它安装~
适用于 Sublime Text 3:
urllib.request,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())
适用于 Sublime Text 2:
urllib2,pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp)ifnotos.path.exists(ipp)elseNurllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read());print('Please restart Sublime Text to finish installation')
当然了,有些时候这样你安装不进去的,就只能自个去下载安装包放到package文件里边去了(就是上边我说的那个文件夹)如果在Preferences → Package Settings 中看到 Package Control 这一项,说明安装成功。这样:
好了接下来我们就可以直接用它来安装插件了~
(2)举个例子吧:比如这个插件 Alignment(代码补齐)
补齐就是补齐~就像这样
你可以去插件库 下载 :/wbond/sublime_alignment
然后把它放到package文件包中。
如果没用过Github的朋友不知道在哪里下载..看这个图~
然后把它解压,把文件夹放进package文件包,然后它就能检测到包啦~体验一下
然后介绍一下命令的方式,键入Ctrl+shift+p& 输入install& 选择package install&过几秒会弹出另一个框。
然后在输入框中输入你想要的插件关键字就行,然后就选择安装吧~
大致就是这样,简单明了。下面介绍其他常用插件,安装方式同理~
(3) Zen Coding (现已改名为Emmet) 下载 :/sergeche/emmet-sublime
zen coding 就是通过简单的命令直接生成一大段代码!一个字又快又准~
安装好插件后,使用Ctrl + Alt + Enter 呼出ZenCoding。
我们可以用 div#content&ul&li*3&a[href=&javascript:void(0);&]{Links$} 这样短短的一句话,生成下面一段代码:
更多的技巧就自己去学学吧~
(4) ColorPicker (调色盘) 下载 :/weslly/ColorPicker
在编辑CSS样式的时候,ColorPicker可以让sublime text 内置一个调色盘,调好颜色,点击OK就会在光标处生成十六进制颜色代码。
(5) SublimeTmpl (自定义新建文件) 下载 :/kairyou/SublimeTmpl
默认已经添加了html、css、js等常见类型的面板,按ctrl+alt+h/ctrl+alt+c/ctrl+alt+j可新建这 3钟类型的文件,快捷键在这里\Packages\SublimeTmpl\Default (Windows).sublime-keymap, 模板文件在这里\Packages\SublimeTmpl\templates,可修改。 比如下边简单的html文件
BracketHighlighter高亮显示匹配的括号、引号和标签
BracketHighlighter这个插件能在左侧高亮显示匹配的括号、引号和标签,能匹配的[]&,&&()&,&&{}&,&&&&&,&&''&,&&tag&&/tag&等甚至是自定义的标签,当看到密密麻麻的代码分不清标签之间包容嵌套的关系时,这款插件就能很好地帮你理清楚代码结构,快速定位括号,引号和标签内的范围。
还有更多插件,可以自行去搜索下载~我没时间了要出去了 T_T...
其他插件:
Clipboard-history(粘贴板历史记录) 下载 :/kemayo/sublime-text-2-clipboard-history
CSScomb(CSS属性排序) 下载 :/csscomb/CSScomb-for-Sublime
Gits(集成 GitHub) 下载 :/kemayo/sublime-text-git
Hex-to-HSL-Color Hex(颜色模式转HSL颜色模式)& 下载 :/atadams/Hex-to-HSL-Color
HtmlTidy(清理与排版你的HTML代码) 下载 :/welovewordpress/SublimeHtmlTidy
JsFormat(javascript格式化) 下载 :/jdc0589/JsFormat
PHPTidy(整理与排版PHP代码) 下载 :/welovewordpress/SublimePhpTidy
SideBarEnhancements(侧边栏增强) 下载 :/titoBouzout/SideBarEnhancements
SublimeLinter(代码错误提示) 下载 :/SublimeLinter/SublimeLinter/tree/sublime-text-3
SFTP(编辑 FTP 或 SFTP 服务器上的文件) 下载 :http://wbond.net/sublime_packages/sftp &
Tradsim(中文繁字体和简体字转换) 下载 :/erinata/SublimeTradsim
TrailingSpacer(高亮显示多余的空格和Tab) 下载 :/SublimeText/TrailingSpaces
YUI Compressor(压缩JS和CSS文件) 下载 :/kairyou/ SublimeYUICompressor
---------先到这里了----------
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致

我要回帖

更多关于 sublime text字体大小 的文章

 

随机推荐