Sublime Text 3mac版本没有mac底部菜单设置,怎么注册

Sublime Text3(mac版)上好用的插件 - 简书
Sublime Text3(mac版)上好用的插件
sublime Text3 插件的安装
代码编辑非常有用的5个插件
配置React 开发环境所需要的插件支持
首先 请查看你的sublime Text3 上是否安装了Package Control ,
安装 Package Ctrol: 使用 ctrl + ~ 打开控制台,输入以下代码:
import 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())
1. 代码格式化的插件 (格式化HTML+CSS+JS+JSON代码的插件)
HTML-CSS-JS Prettify 是一个可以格式化HTML、CSS、Javascript和JSON的sublime插件,有着很棒的格式化效果。不过建议大家学习常用的代码编辑格式尽量写到符合标准的代码
安装过程如下:
1. 在Sublime Text中,按下Ctrl+Shift+P调出命令面板;
2. 输入install 调出 Install Package 选项并回车;
3. 输入pretty,并在列表中选择HTML-CSS-JS Prettify后回车即可安装
可能遇到的问题以及解决方案(全部安装正确但格式化不能使用)
1、Node.js路径配置不对(首先确保安装了Node.js),修改一下HTML-CSS-JS Prettify的用户配置即可(Preferences -& Package-settings -& HTML/CSS/JS Prettify -& Set Prettify Preferences):
2、如果路径没有问题,查看是不是sublime打开的文件路径中有中文,由于HTML-CSS-JS Prettify不支持utf-8,打开文件路径如果有中文,也会报Node.js路径错误。
解决办法如下:
1、preferences-&Browse Packages(打开sublime 的安装文件)
2、修改 HTML-CSS-JS Prettify 目录下的 HTMLPrettify.py 文件
3、83行:node_path = PluginUtils.get_node_path() 改为:node_path = PluginUtils.get_node_path().encode("utf-8")
4、85行:file_path = self.view.file_name() 改为:file_path = self.view.file_name().encode("utf-8")
2.Js和Css语法检查插件
sublimelinter以及配套的插件
启动Package Control
安装sublimelinter 插件
安装sublimelinter-jshint(备选安装 sublimelinter-jslint)
安装sublimelinter-csslint
安装node运行环境
注意不要使用jsxhint,这是针对于需要支持react语法的插件,想要安装react语法插件请参照后面的sublime 搭建react开发环境
全局安装 jshint /csslint
安装命令:sudo npm install -g jshint 注意插件名称都为小写.
:sudo npm install -g csslint
将下列代码复制到Preference-&package Settings-&SublimeLinter-&Setttings-User 中
注意下面代码中的(第五行和第六行 sublimelinter_executable_map)JS和Css的路径问题:
mac中可以再终端用 which node命令 查看node的安装路径
windows 中找到实际的node安装位置复制路径即可。
"sublimelinter": "save-only",
"sublimelinter_popup_errors_on_save": true,
"sublimelinter_executable_map": {
"javascript": "/usr/local/bin/node",
"css": "/usr/local/bin/node"
"jshint_options": {
"strict": false,
"quotmark": "single", //只能使用单引号
"noarg": true,
"noempty": true, //不允许使用空语句块{}
"eqeqeq": true, //!==和===检查
"undef": true,
"curly": true, //值为true时,不能省略循环和条件语句后的大括号
"forin": true, //for in hasOwnPropery检查
"devel": true,
"jquery": true,
"browser": true,
"wsh": true,
"evil": true,
"unused": "vars", //形参和变量未使用检查
"latedef": true, //先定义变量,后使用
"globals": {
"grunt": true,
"module": true,
"window": true,
"jQuery": true,
"$": true,
"global": true,
"document": true,
"console": true,
"setTimeout": true,
"setInterval": true
"csslint_options": {
"adjoining-classes": false,
"box-sizing": false,
"box-model": false,
"compatible-vendor-prefixes": false,
"floats": false,
"font-sizes": false,
"gradients": false,
"important": false,
"known-properties": false,
"outline-none": false,
"qualified-headings": false,
"regex-selectors": false,
"shorthand": false,
"text-indent": false,
"unique-headings": false,
"universal-selector": false,
"unqualified-attributes": false
sublimelinte 支持的语言截图(后续的语言支持需要用户自行配置)
sublimelinte 支持的语言截图
3. JSFormat 插件(只是针对于js文件有效,想要格式化HTML等文件,请参照第一点)
按下快捷键 Ctrl+Alt+p 打开Package Control命令面板
输入 jsformat 回车安装即可.
在你写javascript代码时,选中需要格式化的代码,按下 Ctrl+Alt+f 快捷键后,js代码自动格式化对齐,赶快试一试吧!
如果上面的快捷键使用无效可以使用命令格式化代码,你可以选中要格式化的代码 ,然后按下 Ctrl+Alt+P
(mac 系统 command + shift +p)
输入命令: Format:javascript
回车即可格式化.
4. Emmet 是一个前端开发的利器 用于自动完成HTML的代码书写
Emmet 的基本用法是:输入简写形式,然后按 Tab 键。
关于 Emmet 的更多用法,请看官方文档,这份可以帮你快速记忆简写形式。
Emmet安装:在Package Control中 install Package -& Emmet 安装Emmet.
使用:输入特定含义的字符 按 Tag 自动完成
5. Theme – Soda + sublime Text3 主题修改
安装: Theme – Soda
在 Preferences -&Setting - User 中的[]中括号中添加,(注意配置文是数组的形式)
"theme": "Soda Light.sublime-theme"
"theme": "Soda Dark.sublime-theme"
6.Sublime Text 3安装React 开发环境插件
babel-sublime
支持ES6,React.js, jsx代码高亮,对 JavaScript, jQuery 也有很好的扩展
安装:PC上ctrl+shift+p(MacCmd+shift+p)打开面板输入babel安装
配置:打开.js, .jsx 后缀的文件;
打开菜单view,
Syntax -& Open all with current extension as... -& Babel -& JavaScript (Babel),
选择babel为默认 javascript 打开syntax
sublimeLinter-jsxhint
JSX 代码审查,实时提示语法错误, 帮助快速定位错误
ctrl+shift+p(MacCmd+shift+p)打开面板输入sublimeLinter-jsx安装(请先确保sublimeLinter安装成功)
必须有node.js环境支持 安装node.js
安装node中安装jsxhintnpm install -g jsxhint
修改Emmet兼容jsx 文件(使用Tag 快速完成react 代码书写)
JSX语法书写
ctrl+shift+p(MacCmd+shift+p)打开面板输入emmet安装
打开preferences -& Key bindings - Users,把下面代码复制到[ ]中括号内部(注意配置文件为数组形式)。
"action":"expand_abbreviation"
"command":"run_emmet_action",
"context": [{
"key":"emmet_action_enabled.expand_abbreviation"
"keys": ["tab"],
"command":"expand_abbreviation_by_tab",
"context": [{
"operand":"source.js",
"operator":"equal",
"match_all": true,
"key":"selector"
"key":"preceding_text",
"operator":"regex_contains",
"operand":"(\b(a\b|div|span|p\b|button)(\.\w*|&\w*)?({FNXX==XXFN}*?}$)?)",
"match_all": true
"key":"selection_empty",
"operator":"equal",
"operand": true,
"match_all": true
使用super+e触发 emmet;
正则判断用 a,div,span,p,button标签默认tab 触发;
默认 class 修改为 className 注 supre+e 在 PC 上指的是win+e(pc 建议修改为emmet 默认按键 ctrl+e),在 mac 上指的是cmd+e
详细请参考规则来源,正则小有修改Sublime Text 2/3破解版+注册机+汉化包[亲测win8 Mac Linux完美破解]和ST 2/3使用技巧 | 平衡点
我的图书馆
Sublime Text 2/3破解版+注册机+汉化包[亲测win8 Mac Linux完美破解]和ST 2/3使用技巧 | 平衡点
Sublime Text就不用多做介绍了,官方最新发布了Sublime Text 3 Beta[已经更新到版本:3033],价格却也飙到了70刀。 Sublime Text 是一个代码编辑器(Sublime Text 2是收费软件,但目前可以无限期试用),也是HTML和散文先进的文本编辑器。Sublime Text是由程序员Jon Skinner于2008年1月份所开发出来,它最初被设计为一个具有丰富扩展功能的Vim。 Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。[2]Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。
用了Sublime Text 3 就不太想用Notepad++了….囧 ======================update: ===================================== ====sublime text 3 3059 破解 sublime text 3 3059 for mac === 又 ingvar 大神破解 更新时间: (Mac)下载地址:
使用方法: 使用方法是把这个程序复制到Sublime Text/Sublime Text.app/Contents/MacOS/目录下,即替换掉原来的Sublime Text程序。然后加上权限: chmod +x Sublime\ Text 重新启动就剋了。
其他版本: Windows版本下载地址:
Edit:Linux版本的破解补丁在今天搞定了! Linux版本下载地址:
===========================================================
Sublime Text 3 is currently in beta. The latest build is 3047.
(10.7 or later is required)
– also available as a portable version
– also available as a portable version
– also available as a tarball for other Linux distributions.
– also available as a tarball for other Linux distributions.
===========
SublimeText中文破解版
-更新=================
破解器,单独下载(升级之后需要重新破解一下)
=========================== 更新日志
大大的提高了启动速度 优化所有插件性能 界面管理增强 新增侧边栏预览选项卡 优化边栏动画 多个工作区可以共享同一个项目 从Python2.6升级到Python3.3 某些API事件现在以异步方式运行 新增window.settings()和window.template_settings() 语法高亮更新 修正Linux不兼容问题 修正EXEC命令 插件可以通过plugin_loaded()载入模块 sublime.version(), sublime.platform(), sublime.architecture(), 和 sublime.channel() 可以在 plugin_loaded() 之前调用 新增命令mand_history()
使用注册机破解
下载附件中的Sublime Text 3 注册机,以管理员方式运行,在Name一栏中输入你的用户名(随意),点击Generate破解主文件,复制License中的内容,Sublime Text,执行 Help-&Enter license 粘贴你的License,点击OK,重启Sublime Text即可看到你的注册信息。
本人友情提醒:这里有两个步骤,先破解文件再写入注册码,就是安装完毕后以管理员运行Sublime Text 3 注册机,
先Patch key 找到安装目录(如我的是:D:\Program Files\Sublime Text 3\sublime_text.exe)
然后接着才Generate
如果之前安装过sublime text 3 ,然后又是chongzhuang重装他的,如果要破解,那么一定要把之前sublime text 3安装目录里的东西全部删除干净,否则破解可能不能成功! 最好把临时运行目录也一起清理,一般win8在 C:\Users\用户名\AppData\Roaming\Sublime Text 3
安装 Sublime Text 3 汉化包
——日——- sublime text 2 也是可以用上面的注册机!
运行Sublime Text 3 点击 Preferneces -& Browse Packages 会打开 X:\Program Files\Sublime Text\Data\Packages 目录,点击向上并找到X:\Program Files\Sublime Text\Data\Installed Packages目录,从附件中下载汉化包并解压,复制Default.sublime-package到这个目录,无需重启即可直接看到汉化效果。
打包下载:
提取密码:2855 文章摘自:朽木博客,原文地址《Sublime Text 3 破解版 + 注册机 + 汉化包》 http://www.xiumu.org/note/sublime-text-3.shtml
——最新版 Sublime Text Build 3 ——免安装,绿色版 下载
64位 绿色版
Sublime Text 使用介绍/全套快捷键及插件推荐
更新===update for
手动 用命令行安装 Package Control 管理工具
=== 方法一: 用命令行(推荐)安装Package Control 首先, ctrl+` (Mac对应 control键),然后复制下面代码,回车即可。 =========Sublime Text 3======
import 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======
import urllib2, pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else N urllib2.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')
如果你因为某些原因不能通过命令行安装,那么就直接下载包来安装吧,install Package Control: 下载
点击 Preferences 进入到& Browse Packages 再进入到& Installed Packages/ 目录 把下载好的 Package Control.sublime-package 复制到 Installed Packages/ 目录下, 接着重启 Sublime Text
Sublime Text快捷键: 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+上下键,可替换行
Sublime Text快捷键
Sublime Text 插件: 建议先启用Package Control,作用是安装插件时很方便,启用方法:菜单栏 – View – Show Console,贴入以下代码并回车,然后重启Sublime。如果你所在的网络无法启用,则无法使用,手动搜索下载去吧(话说你的网也被封了?)。 import urllib2,pf=’Package Control.sublime-package’;ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else Nopen(os.path.join(ipp,pf),’wb’).write(urllib2.urlopen(‘http://sublime.wbond.net/’+pf.replace(‘ ‘,’%20′)).read()) 开始安装一些非常实用的插件吧,Ctrl+Shift+P(菜单 – Tools – Command Paletter),输入 install 选中Install Package并回车,输入或选择你需要的插件回车就安装了(注意左下角的小文字变化,会提示安装成功),安装其它插件也是这个方法,非常快速。 ZenCoding 不得不用的一款前端开发方面的插件,Write less , show more.安装后可直接使用,Tab键触发,Alt+Shift+W是个代码机器。 Alignment 代码对齐,如写几个变量,选中这几行,Ctrl+Alt+A,哇,齐了。 Prefixr 写 CSS可自动添加 -webkit 等私有词缀,Ctrl+Alt+X触发。 Tag Html格式化,右键Auto-Format Tags on Ducument。 Clipboard History 剪贴板历史记录,显示更多历史复制,Ctrl+Shift+V触发。 SideBarEnhancements 侧栏右键功能增强,非常实用 Theme – Soda 完美的编码主题,用过的都说好,Setting user里面添加”theme”: “Soda Dark.sublime-theme” GBK to UTF8 将文件编码从GBK转成UTF8,菜单 – File里面找 SFTP 直接编辑 FTP 或 SFTP 服务器上的文件,绝对FTP浮云 WordPress 集成一些WordPress的函数,对于像我这种经常要写WP模版和插件的人特别有用 PHPTidy 整理排版PHP代码 YUI Compressor 压缩JS和CSS文件
SUBLIME TEXT 2/3 设置文件详解 Preferences.sublime-settings文件:
// While you can edit this file, it’s best to put your changes in
// “User/Preferences.sublime-settings”, which overrides the settings in here.
// Settings may also be placed in file type specific options files, for
// 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.
// 设置字体和大小,必须在Settings-User里重写,这里设置没有任何效果
“font_face”: “Consolas”,
“font_size”: 12,
// Valid options are “no_bold”, “no_italic”, “no_antialias”, “gray_antialias”,
// “subpixel_antialias” and “no_round” (OS X only)
// 字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿
// subpixel_antialias和no_round是OS X系统独有的
“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”: false,
// Adds whitespace up to the first open bracket when indenting. Requires
// auto_indent to be enabled.
// 需要启用auto_indent,第一次打开括号缩进时插入空格?(没测试出来效果…)
“indent_to_bracket”: true,
// 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”: false,
// 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”: false,
// Set to false to not highlight curly brackets. This only takes effect if
// match_brackets is true
// 是否突出显示大括号,match_brackets为true生效
“match_brackets_braces”: false,
// 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”: 1,
// Additional spacing at the bottom of each line, in pixels
// 设置每一行到底部,以像素为单位的间距,效果相当于行距
“line_padding_bottom”: 1,
// 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”: 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,
// User Interface Settings
// The theme controls the look of Sublime Text’s UI (buttons, tabs, scroll bars, etc)
// Data\Packages\Theme – Default\Default.sublime-theme控制软件的主题
“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,
// 标签页的关闭按钮
“show_tab_close_buttons”: true,
// 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
“use_simple_full_screen”: false,
// Valid values are “system”, “enabled” and “disabled”
// 水平垂直滚动条:system和disabled为默认显示方式,enabled为自动隐藏显示
“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
// 软件使用最后的设定打开文件,hot_exit为true时没有效果
“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,
// 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.
// 针对OS X
“close_windows_when_empty”: 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"]
TA的最新馆藏[转]&[转]&
喜欢该文的人也喜欢}

我要回帖

更多关于 mac菜单栏设置 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信