Sublime Text2使用教程整理
Sublime Text 使用指南说明书

Table of ContentsAbout1 Chapter 1: Getting started with sublimetext2 Remarks2 What is Sublime Text?2 Why Use Sublime Text?2 Versions3 Examples3 Installation3 Customizing User Interface/Theme3 Credits6AboutYou can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: sublimetextIt is an unofficial and free sublimetext ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official sublimetext.The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to ********************Chapter 1: Getting started with sublimetext RemarksWhat is Sublime Text?Sublime Text is simple but powerful source code editor with a Python application programming interface. It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, themes and packages, typically community-built and maintained under free-software licenses.Why Use Sublime Text?It is Featureful:•Sublime Text is an extremely featureful text editor. Whether you want multiple cursors or you want a good find/replace or a simple easy incremental search or even editing files overssh/ftp, you are covered.It is Stable:•Text Editor is a very important software. One crash, people would give it a second thought and another crash will be enough to justify remove it totally from ones system. Thefind/replace/incremental-find/find-in-files are all the areas where performance and stability is important and sublime text has held up.It is Mainained:•Developers have been pounding releases month on month so steadily that it has created enough eagerness for the next release and the next feature.It is Customizable:•Sublime Text 2 is built from the ground up for being highly customizable. From the apparent simple configuration things like displaying line number, code folding etc to some deepsoftware architecture with "vi mode" enabling and a huge list of user settings, it is what you make of it.•The fact that the entire user preference is a plain text config file with comments rather than a deeply nested menu also appeals to a lot of programmers/designers.It is Innovative:•Be it ability to run the internal commands from the console (Ctrl+) or the ability to navigate the command list by name (Cmd+Shift+P) in the "command palette" or the multiple cursors as mentioned before are really innovative and gorking just one of these is enough for any userfor a huge productivity boost.It is Cross Platform:•For something so basic as a text editor, being Cross Platform is a huge positive.It is Extendable by Plugins:•Sublime Text 2 has a great plugin architecture. A lot of parts of the editor itself have been implemented as plugins. The syntax highlighting for different languages, the side bar etc. Versions| 2.0 | 8th July 2013 || 3.0 Beta | 29th January 2013 || 3.0 | 28th June 2013 |ExamplesInstallationTo download Sublime Text, visit the download section on their website.There are various builds for different operating systems including:•OXS•Windows•Ubuntu (64 & 32 bit)Once Sublime Text has been successfully downloaded, simply open the .dmg file to start the installation process.After completion of the installation process, navigate to the Applications folder and open Sublime Text.You have successfully installed the free version of Sublime Text!To obtain a licence, you must purchase Sublime Text by visiting this purchase link. Customizing User Interface/ThemeTo customize Sublime Text (including themes, syntax highlighting etc) you must have package control installed.To install package control visit www.packagecontrol.io/installation.Instead of following the above link, you can open the Sublime console to install it. The consoleis accessed via the ctrl+ shortcut or the View > Show Console menu. Once open, paste the following Python code for your version of Sublime Text into the console.import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' +'1e3d39e33b79698005270310898eea76'; 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 elseopen(os.path.join( ipp, pf), 'wb' ).write(by)This code creates the Installed Packages folder for you, and then downloads the Package Control.sublime-package into it. The download will be done over HTTP instead of HTTPS due to Python standard library limitations, however the file will be validated using SHA-256.After this has finished, open Sublime Text and press shift-command-p on OSX or control-p on windows to open the package search function.Start typing in "Package Control" and select the Package Control: Install PackageOnce this has loaded, search through each package/theme and double click to install one.Once this has been installed, open the search function again (shift-command-p on OSX or control-p on windows) and search for the package/theme you have just installed.Most packages come with an automatic activation, for example the Boxy theme shows Boxy Theme: Activation. Simply select this to install the theme.Your UI will now look different depending on the theme you picked. See the image below for an example of the Spacegray theme:Read Getting started with sublimetext online: https:///sublimetext/topic/7572/getting-started-with-sublimetextCredits。
sublime text 教程以及使用说明

sublime text 2 教程以及使用说明Sublime Text2 是一款具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,不仅具有华丽的界面,还支持插件扩展机制,用她来写代码,绝对是一种享受。
Sublime Text 2中文版下载界面先看下ST2的界面:l 从上到下:标题栏↓菜单栏↓tab控制栏↓编辑区↓状态栏;l 从做到右:分别是边栏(可关闭)→编辑区→MiniMap菜单栏各种命令,各种设置。
Tab栏很多编辑器都有的,如果文件编辑过未保存,右上角有个小圆点提示保存,如果未保存关了也不用害怕,ST2很贴心,会帮我们自动保存。
编辑区这是我们主要的工作区域,ST2支持代码自动缩进,代码折叠功能。
介绍几个常见的功能:l 自动完成:自动完成的快捷键是Tab,如果在html文件中,输入cl按下tab,即可自动补全为class=””;加上zencoding后,更是如虎添翼,后面再讲到l 多列编辑:按住ctrl点击鼠标,会出现多个闪烁的光标,这时可同时修改多处或者按住鼠标中键拖拽,l 代码注释功能:ctrl+/、ctrl+shift+/分别未行注释和块注释,再按一下就能去掉注释,ST2能够自动识别是html、css还是js文件,给出不同类型的注释。
l 行操作:ctrl+alt+↑、ctrl+alt+↓向上或者向下交换两行,ctrl+enter,光标后插入空行,ctrl+d选择相似,可以参考后面的快捷键列表。
l 右键功能:前3个,大家都知道,第4个,show unsaved changes,显示未保存的修改,红色减号表示删去的内容,绿色加号表示新增的内容Open Containing Folder…,打开包含此文件的文件夹,这个很方便找到相关的文件Copy File Path,复制文件路径,方便我们复制路径到浏览器中查看Auto-Format Tags on Selection 格式化选中的文档,方便我们更清晰的查看代码结构,虽然ST2有自动缩进功能,但是当我们粘贴进一段没有格式化过的代码,就需要这个能了,这个功能要安装了Tag这个插件才会出现。
sublime 用法

sublime 用法
Sublime Text是一款流行的文本编辑器,具有丰富的功能和灵活的扩展性。
以下是一些Sublime Text的常用用法:
1. 打开文件:通过菜单栏的“File”选项或快捷键(Windows:Ctrl + O,Mac:Command + O)打开文件。
2. 保存文件:通过菜单栏的“File”选项或快捷键(Windows:Ctrl + S,Mac:Command + S)保存文件。
3. 多行编辑:按住Ctrl键(Windows)或Command键(Mac)并点击多个位置,可以在多个位置同时编辑。
4. 快速查找:使用快捷键(Windows:Ctrl + F,Mac:Command + F)打开查找面板,输入要查找的内容并回车,可以快速定位到文件中的匹配项。
5. 替换文本:使用快捷键(Windows:Ctrl + H,Mac:Command + H)打开替换面板,输入要查找的内容和替换内容,并选择替换选项,可以替换文件中的匹配项。
6. 代码自动补全:Sublime Text支持代码自动补全功能,可以通过输入部分关键字后按下Tab键进行补全。
7. 分屏编辑:使用快捷键(Windows:Alt + Shift + 2,Mac:Command + Option + 2)可以将编辑器分为两个垂直窗格,方便同时编辑多个文件。
8. 安装插件:Sublime Text支持丰富的插件扩展,可以通过Package Control插件管理器安装各种插件来扩展编辑器的功能。
这只是Sublime Text的一些基本用法,它还有很多其他功能和快捷键可以探索和使用。
sublime text的列编辑技巧

Sublime Text 是一款轻量级但功能强大的文本编辑器,它受到了众多程序员和开发者的喜爱。
在使用 Sublime Text 进行文本编辑时,列编辑技巧是非常重要的,可以极大提高编辑效率。
本文将介绍 Sublime Text 的列编辑技巧,帮助读者更快、更高效地进行文本编辑。
一、列编辑的基本操作1. 启用列编辑模式Sublime Text 的列编辑模式可以通过按住 Alt 键(在 Windows 和Linux 系统下)或 Option 键(在 macOS 系统下)并使用鼠标左键来实现。
也可以通过按下 Ctrl+Shift+L (在 Windows 和 Linux 系统下)或 Cmd+Shift+L (在 macOS 系统下)快捷键来启用列编辑模式。
2. 多行列编辑在列编辑模式下,按住鼠标左键或使用方向键进行多行列编辑。
此时,可以选择多行文本进行列编辑操作,极大提高了编辑效率。
3. 插入文本在列编辑模式下,可以直接输入文本,在所有选中的位置同时插入相同的内容。
这在需要在多个位置插入相同文本时非常实用。
4. 复制粘贴在列编辑模式下,可以复制选中的列并在其他位置粘贴,非常适合需要复制相同格式的文本到多个位置的情况。
二、列编辑的高级技巧1. 多处同时编辑在 Sublime Text 中,可以通过列编辑模式在多个位置同时进行编辑,只需按住 Ctrl 键(在 Windows 和 Linux 系统下)或 Cmd 键(在macOS 系统下)并点击要编辑的位置即可同时在多个位置进行编辑。
这一技巧非常适合同时修改多个相似内容的场景,能够减少大量的重复性工作。
2. 自定义快捷键Sublime Text 允许用户自定义列编辑的快捷键,通过在用户配置文件中添加相应的配置项,可以实现个性化的列编辑操作,提高编辑效率。
3. 插件扩展Sublime Text 的功能可以通过插件进行扩展,有一些列编辑相关的插件可以帮助用户更快速、更方便地进行列编辑操作。
神奇漂亮的开发工具sublime text的全部使用配置

神奇漂亮的开发工具sublime text的全部使用配置(windows)首先说sublime text2更酷的插件配置以及使用技巧,因为2是免费的,sb3是收费的,所以我用的是sb2;个人的截图如下:一、用到的插件下载完后,首先:按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的,输入法属性设置-输入法管理-取消热键切换至QQ拼音)粘贴以下代码到底部命令行并回车:import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('/'+pf.replac e(' ','%20')).read())重启Sublime Text 2Ctrl+shift+p调用Package Contro,选择Package Install 即可自定义选择自己喜欢的插件插件推荐:常用插件Zen Coding:现在叫emmentSublime CodeIntel:代码自动提示跨页查找函数定义及自动完成ConvertToUTF8:国人必备啊。
解决中文问题BracketHighlighte:高亮显示“”[] {} 等等HtmlTidy:格式化HTML代码JsFormat:格式化js代码SublimeLinte:语法检验SFtp:强大的ftp工具Sublime Prefixr:CSS3 私有前缀自动补全插件,显然也很有用哇phpTidy :是用来格式化php代码的工具.Format SQL:格式化sql等等,需要什么直接搜一下就行了。
sublime用法

sublime用法
Sublime Text是一款流行的文本编辑器,下面是一些Sublime Text的基本使用技巧:
1. 打开Sublime Text后,你可以直接开始输入文本。
2. 命令面板:你可以通过按下"Ctrl + Shift + P"或者"Cmd + Shift + P"打开命令面板,从而可以进行快速的搜索和操作。
3. 自动完成:当你输入代码时,Sublime Text会自动提示相关代码,这使得输入变得更加快速和准确。
4. 代码片段:你可以通过输入一些特定的代码缩写,然后按下Tab键来快速插入代码片段。
这个功能可以大大提高编程效率。
5. 多行编辑:你可以按下"Ctrl + Shift + L"来实现多行编辑。
这是一个非常有用的功能,可以在同一列上同时编辑多行文本。
6. 快捷键:Sublime Text有很多快捷键(快捷键列表可以在"Preferences"-"Key Bindings"中查看),可以大大提高编辑效率。
7. 插件:Sublime Text支持许多插件,可以使得编辑器功能更加完善和强大。
你可以通过在"Preferences"-"Package Control"中安装各种插件。
总之,Sublime Text是一款非常强大且易于使用的文本编辑器,可以大大提高你的工作效率。
Sublime Text2 使用及插件配置

如果上面的方法安装不成功,可以这样下载/Package%20Control.sublime-package将下载后的Package Control.sublime-package直接放到 C:\Users\****\AppData\Roaming\Sublime Text 2\Installed Packages 中。
然后我们按住ctrl+shift+p。
此时会输出一个输入框,输入install。
选择package contrl:install package 回车,需要稍定一会儿,右下角状态栏会显示正在连接的提示文字。
使用sublime时注意看右下角状态栏,很多插件的提示信息都显示在这里,这个状态栏很小,初次使用的人都有可能没有注意到它。
稍等一会儿后,它会出现一个插件列表,你也可以在输入框中输入文字进行搜索插件。
搜索到自己想安装的插件,再选择它,回车。
就自动给你安装好了。
如果要卸载插件,ctrl+shift+p 输入remove,选择package control:remove package 然后再选择已安装的插件,回车即可卸载。
当然也可以这样:Preferences--> package control 选择安装和移除插件
点击Install Package之后,稍等一会,就出先搜索安装的列表
正式安装插件:
1 SVN。
sublime text 用法

sublime text 用法Sublime Text 是一款流行的文本编辑器,适用于各种编程语言。
以下是关于Sublime Text 的一些基本用法:1. 安装:下载并安装Sublime Text。
安装过程中,你可以根据自己的需求选择安装插件和设置。
2. 界面:Sublime Text 的界面简洁,主要包括菜单栏、状态栏、编辑区域和缩进区域。
你可以根据自己的喜好自定义界面。
3. 创建和打开文件:点击菜单栏的“文件”(File)>“新建”(New)创建一个新的文件,或者点击“文件”>“打开”(Open)打开已有的文件。
4. 编写代码:在编辑区域中输入和编辑代码。
Sublime Text 支持多种编程语言,你可以通过安装相应的插件来切换语言。
5. 保存文件:完成编写后,点击菜单栏的“文件”>“保存”(Save)或“另存为”(Save As)将文件保存在指定位置。
6. 查找和替换:按快捷键Ctrl+F(Windows/Linux)或Command+F(Mac)打开查找框,输入关键词进行查找。
按Ctrl+R(Windows/Linux)或Command+R(Mac)进行替换。
7. 剪切、复制和粘贴:按快捷键Ctrl+X(Windows/Linux)或Command+X(Mac)进行剪切,Ctrl+C(Windows/Linux)或Command+C (Mac)进行复制,Ctrl+V(Windows/Linux)或Command+V(Mac)进行粘贴。
8. 选择全部:按快捷键Ctrl+A(Windows/Linux)或Command+A(Mac)选中编辑区域的所有内容。
9. 撤销和重做:点击菜单栏的“编辑”>“撤销”(Undo)或“重做”(Redo)进行撤销或重做操作。
10. 插件安装:Sublime Text 支持通过Package Control 安装和管理插件。
按快捷键Ctrl+Shift+P(Windows/Linux)或Command+Shift+P(Mac)打开命令面板,输入“Package Control”并回车,然后按照提示操作。
sublime text2 使用技巧心得总结

两个小技巧:选择文字之后,按下 Tab 和 Shift + Tab 可以控制缩进,和EmEditor 一样,内牛。
文件未保存就可以直接退出程序,下次启动会自动恢复。
一)在当前项目中,快速搜索文件1. 搜索文件2. 搜索文件小技巧,在输入文件路径的时候,可以/c/u/a/这样的格式匹配来快速找到文件3. 搜索到了2个结果,可以按上下键来在多个结果中跳转二)添加注释1. 添加块注释,类似于/* */用这种方法来添加的注释一样。
先选择要注释的内容,然后按 ctrl + /2. 添加行注释,把鼠标移到改行的任意位置,按ctrl + /即可3. 取消单行注释,鼠标位于已经注释的行的任意位置,执行ctrl + /即可4. 取消块注释选择要取消的内容,按ctrl + / 即可5. 即取消注释和添加注释是逆操作三)快速跳转到指定的行ctrl + g,然后输入行号,enter就行。
比如跳转到第五行。
或者ctrl + p,再输入 :四)搜索函数按ctrl + r 或 ctrl + p ,在执行@。
之后填写要搜索的函数名五)隐藏菜单和显示菜单栏1. 隐藏菜单栏:view --> Hide Menu2. 隐藏菜单栏后,要显示菜单栏:i. 这是隐藏之后3.隐藏之后显示菜单栏按住Alt 键,菜单栏即会出现。
松开后,则菜单栏就会消失。
要永久显示则是:按住Alt 键-->view--> show Menu六)扩展ST2是支持插件扩展的,首先,我们需要安装Package Contro,ctrl+`调出命令行工具,输入import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if notos.path.exists(ipp) elseNone;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbon /'+pf.replace(' ','%20')).read())回车即可。
Sublime Text 2 设置方法

Sublime Text 2 设置方法Sublime Text 2是那种让人会一眼就爱上的编辑器,不仅GUI让人眼前一亮,功能更是没的说,拓展性目前来说也完全够用了,网上介绍软件的文章和推荐插件的文章也不少,而且很不错,大家可以去找找自己需要的。
而且Linux 支持也做的非常好。
Sublime Text 2中文版下载之前想设置什么都是直接在网上搜,但最近想调行距,这个把我给难住了,软件上的设置没找到,网上搜也没有,最后的最后在Sublime的官方论坛找到了,个人觉得行距还是很影响视觉体验的,看看下面的对比图就知道了:看来想驾驭好这软件不弄清楚配置文件是不行了,周末找了时间把配置文件的每条配置信息都加上了中文注释,现在贴出来和大家共享,里面有解释不清楚的也欢迎大家伙来互相讨论:)另外,这也是我的第一篇博客,以后我会多写些前端方面的文章和大家共享,欢迎一起讨论:)Preferences.sublime-settings文件:// While you can edit this file, it’s best to put your changes in// “User/Preferen ces.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// line.// 显示对齐的白线是否根据回车、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// level// 防止被缩进到同一级的字换行“indent_subs equent_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 settin gs 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 determine d 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// with.// 默认编码格式“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 whentab_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_de lay”: 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 completionon 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 whentab_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// shown.// 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 0and 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 ifhot_exit is// true// 软件使用最后的设定打开文件,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"]}。
sublimetext用法

Sublime Text是一个轻量级的代码编辑器,具有许多有用的功能和快捷键。
以下是一些Sublime Text的常用方法和技巧:
1. 按住CTRL键,然后按D多次,可以快速选择当前选中项的下一个匹配项。
通过按住CTRL,再按D三次,可以快速选择三个相同的文本。
2. 使用Win:ALT + F3或Mac:CTRL + ⌘ + G可以选中整个文件中的指定字符。
3. Win:CTRL + SHIFT + ' 或 Mac:⌘ + ⇧ + K可以快速选择当前元素的父级标签。
4. Win:CTRL + SHIFT + M或Mac:⌘ + ⇧ + SPACE可以选择括号内的内容。
5. Ctrl + N新建一个窗口。
6. 使用Alt+Shift+1~Alt+Shift+8可以创建不同的分屏布局。
7. Ctrl + h进行替换操作,这里可以使用正则表达式,选取指定模块,用好替换,处理文本很方便。
8. 打开首选项的设置里,可以设置字体、属性等。
9. 通过Package control安装插件。
10. Ctrl+k+b可以调出/关闭导航栏。
11. 在edit中找到line,有增加缩进、减少缩进、删除行、复制行等操作。
12. 在edit下的comment里,可以增加注释,操作和eclipse类似。
13. Ctrl+l选中这一行,比较有意思的是Ctrl+d,它会选择这个单词,再来一次Ctrl+d它会选中同一个单词,并且可以有同行编辑。
以上是Sublime Text的一些常用方法和技巧,希望对您有所帮助。
sublime使用技巧

sublime使用技巧Sublime是一款非常流行的文本编辑器,被广大开发者广泛使用。
它不仅具有简洁的界面和强大的功能,还支持各种编程语言。
下面,我将为大家分享一些Sublime使用技巧,帮助大家更高效地使用这个编辑器。
1. 快速查找和替换:Sublime提供了快速查找和替换的功能,在文件中查找关键字时非常方便。
只需按下Ctrl+F即可进入查找模式,输入关键字即可定位到目标位置。
如果需要替换某个关键字,可以按下Ctrl+H,然后输入要查找的关键字和替换字符串,点击替换即可。
2. 多行编辑:当你需要在多行中进行相同的操作时,可以按下Ctrl+Shift+L来实现多行编辑。
只需将光标定位到每一行的开始位置,然后按下快捷键,即可将操作同时应用于多行。
3. 代码折叠:Sublime支持代码折叠功能,能够折叠代码块,提高阅读和编辑效率。
只需在代码行的左侧点击加号或减号图标,即可折叠和展开代码块。
如果要折叠全部代码块,可以按下Ctrl+K+0;如果要展开全部代码块,可以按下Ctrl+K+J。
4. 自动补全:Sublime提供了自动补全功能,能够快速补全代码。
只需在输入代码的过程中按下Tab键,Sublime会自动补全代码。
如果有多个匹配项,可以使用方向键进行选择。
5. 插件安装:Sublime支持丰富的插件,能够扩展其功能。
要安装插件,只需按下Ctrl+Shift+P,然后输入install package来打开插件安装界面。
在其中可以搜索并安装你需要的插件。
6. 自定义快捷键:Sublime允许用户自定义快捷键,以提高编辑效率。
只需点击菜单栏的Preferences,然后选择Keybindings,即可打开自定义快捷键设置界面。
在其中,你可以添加、编辑或删除已有的快捷键,以适应自己的习惯和需求。
7. 多窗口模式:如果你需要同时编辑多个文件,可以在Sublime中打开多个窗口。
只需按下Ctrl+Shift+N即可打开一个新的窗口,然后在其中打开其他文件。
sublime text特性使用

六 禁用自动提示
Preferences/File Settings - User:
添加内容 "auto_complete": false
ห้องสมุดไป่ตู้
七 界面的编辑模式
1【shift】+【F11】从正常模式进入防干扰模式
2 将默认配置中的
"ignored_packages": ["Vintage"]
十 整行操作
【ctrl】+【shift】+【D】复制整行
【ctrl】+【shift】+【K】或 【ctrl】+【X】删除整行
【ctrl】+【 P】后 @ (或是【ctrl】+【R】)可以快速列出/跳转到某个函数。
【ctrl】+【 P】后 # 可以在当前文件中进行搜索。
【ctrl】+【 P】后 : (或是【Ctrl】+【G】)加上数字可以跳转到相应的行。
九 缩进
【ctrl】+【[】 向左缩进
【ctrl】+【]】 向右缩进
1 对某个词,在连续【ctrl】+D 就会连续选中有个词
2 如果减少某个选中的词,【ctrl】+U
三 对当前选中的词,一次选中全部
选中某个词,【alt】+【F3】
四 从选中中的多行模式,回到单行模式
【ESC】
五 将选中的单行模式转化为多行模式
【ctrl】+【shift】+【L】
sublime text 2 的操作
一 列选择
1 【shift】+ 【鼠标右键】
sublime使用技巧

sublime使用技巧Sublime Text是一款非常流行的文本编辑器,它具有简洁、高效、易用等特点,被广泛用于Web开发、编程等领域。
下面将介绍一些Sublime Text的使用技巧,帮助你更加高效地使用这个工具。
一、基础操作1. 安装插件Sublime Text支持安装各种插件,可以大大增强编辑器的功能。
你可以通过Package Control安装插件,也可以手动下载插件并安装。
在菜单栏中选择Tools->Command Palette->Package Control: Install Package即可安装插件。
2. 快捷键Sublime Text提供了丰富的快捷键操作,可以大大提高编辑效率。
以下是一些常用的快捷键:Ctrl+N:新建文件Ctrl+O:打开文件Ctrl+S:保存文件Ctrl+Shift+S:另存为Ctrl+W:关闭当前文件Ctrl+Shift+W:关闭所有文件Ctrl+Z:撤销操作Ctrl+Y:重做操作Ctrl+F2:设置标记(或取消标记)F2:跳到下一个标记处Shift+F2:跳到上一个标记处Ctrl+P:查找文件3. 自动补全Sublime Text支持自动补全功能,可以极大地减少输入时间。
在输入代码时,按下Tab键即可进行自动补全。
二、高级操作1. 多行编辑Sublime Text支持多行编辑功能,可以同时编辑多个文本行。
你可以按下Ctrl+Shift+L快捷键,或者选择菜单栏中的Selection->Split Into Lines命令,将文本分成多行。
然后按下Ctrl+Shift+L快捷键即可开始多行编辑。
2. 代码折叠Sublime Text支持代码折叠功能,可以将代码块折叠起来,方便查看和编辑。
你可以通过菜单栏中的View->Fold All或View->UnfoldAll命令来折叠或展开所有代码块。
也可以通过选中代码块并按下Ctrl+Shift+[快捷键来折叠选中的代码块。
sublime text使用技巧

sublime text使用技巧(最新版3篇)目录(篇1)1.Sublime Text 简介2.设置多个光标3.选择文本内容4.调出命令面板5.安装插件6.设置开发环境7.快速注释8.快速打开文件9.自定义界面10.总结正文(篇1)Sublime Text 是一款功能强大且实用的代码编辑器,被许多开发者喜爱。
为了让您更好地使用 Sublime Text,本文将为您介绍一些实用的使用技巧。
首先,按住 Ctrl 键并使用鼠标左键可以在文档中设置多个光标,这有助于在多处同时修改相同的内容。
同时,按住 Ctrl+D 可以选择一个单词,按住 Ctrl+L 可以选择一行,按住 Ctrl+A 可以选择全部内容。
其次,按住 Ctrl+Shift+P 可以调出命令面板,然后执行相应的操作,如重命名、设置语法、插入代码段等。
在需要时,您还可以按住Ctrl+Shift+F 在文档中列出所有 CSS 选择器,并立即跳转查看。
此外,为了进一步提高开发效率,您可以安装一些插件。
在 SublimeText 中,安装插件非常简单,只需点击菜单栏中的“View”选项,然后选择“Install”即可。
一些常用的插件包括 Emmet、SVN、Git 等,它们可以帮助您快速完成各种开发任务。
在设置开发环境方面,Sublime Text 支持多种编程语言,如JavaScript、HTML、CSS 等。
您只需在菜单栏中选择相应的语言,或者在打开文件时自动识别语言。
此外,您还可以通过安装插件来支持其他编程语言和开发环境。
在编写代码时,快速注释和快速打开文件也是提高效率的重要技巧。
按住 Ctrl+/可以快速注释选定的代码,而按住 Ctrl+T 可以快速打开文件。
此外,您还可以通过自定义界面来适应自己的工作习惯,例如更改主题、调整菜单栏和侧边栏的位置等。
目录(篇2)1.Sublime Text 简介2.设置多个光标3.选择单词、行和全部4.使用命令面板5.安装插件6.设置开发环境7.快速注释和打开文件8.输入和缩放文字正文(篇2)Sublime Text 是一款功能强大且实用的代码编辑器,被许多开发者喜爱。
macbook中sublime的用法

macbook中sublime的用法若您在MacBook上安装了Sublime Text文本编辑器,以下是一些基本的用法:1. 打开Sublime Text:在Launchpad或应用程序文件夹中找到Sublime Text图标,双击打开应用程序。
2. 新建一个文件:点击菜单栏的 "File",选择 "New File" 或使用快捷键 "⌘ + N"。
3. 打开一个已存在的文件:点击菜单栏的 "File",选择 "Open" 或使用快捷键 "⌘ + O",然后选择要打开的文件。
4. 保存文件:点击菜单栏的 "File",选择 "Save" 或使用快捷键"⌘ + S",然后指定文件保存的位置和文件名。
5. 编辑文本:在Sublime Text的编辑区域中输入或粘贴文本。
你可以使用常规文本编辑器的大部分功能,比如复制、剪切、粘贴、撤销、重做等。
6. 代码高亮:Sublime Text会根据文件类型自动进行代码高亮。
如果您的文件没有自动高亮,可以点击菜单栏的 "View",选择 "Syntax",然后选择正确的语法。
7. 缩进代码:Sublime Text会自动根据代码的层级缩进,但您也可以使用Tab键或快捷键 "⌘ + ]"、"⌘ + ["来手动缩进或反缩进代码。
8. 查找和替换:点击菜单栏的 "Edit",选择 "Find" 或使用快捷键 "⌘ + F"来查找文本。
点击 "Edit",选择 "Replace" 或使用快捷键 "⌘ + ⌥ + F"来查找并替换文本。
sublime使用详细总结

sublime使用详细总结
1、安装Sublime Text。
2、设置Sublime。
Sublime Text安装完成后,就可以开始设置了。
需要先设置语言环境、颜色主题、插件和键盘快捷键等。
(1)设置语言环境:
Sublime Text支持多种编程语言,可以编辑HTML、CSS、JavaScript、Python、Ruby、PHP等等。
可以在Sublime Text的“View”菜单中找到“Syntax”选项,从中选择你要编辑的文件类型。
(2)设置颜色主题:
可以在Sublime Text的“Preferences”菜单中找到“Color Scheme”选项,从中选择你喜欢的颜色主题。
(3)安装插件:
Sublime Text有很多插件可以帮助开发者提高开发效率。
可以在Sublime Text的“Preferences”菜单中找到“Package Control”选项,通过搜索找到你要安装的插件并安装。
(4)设置键盘快捷键:
Sublime Text有很多快捷键,可以让你轻松的完成诸如缩进、折叠
代码等操作,可以在Sublime Text的“Preferences”菜单中找到“Ke y Bindings”选项,从中设置你想要的快捷键。
3、常用技巧。
(1)文件操作:
Sublime Text可以轻松实现多文件同时打开编辑,可以按Ctrl+P直接跳转到任意文件,按Ctrl+Shift+P可以快速打开和关闭文件。
(2)缩进操作:。
sublimeTEXT2怎么注释代码?sublime代码添加注释的教程

sublimeTEXT2怎么注释代码?sublime代码添加注释的教
程
sublime TEXT2中想要添加注释,该怎么添加呢?想摸我门就来看看sublime注释代码的教程。
Sublime Text 3 v3.2.2 BUILD 3211 代码编辑器
类型:⽂本⽂字
⼤⼩:20MB
语⾔:英⽂软件
时间:2020-02-11
查看详情
1、当前的汇总编辑的代码的,那么需要进⾏对代码添加注释,
2、需要的注释的代码,进⾏选中该⾏的代码。
3、代码选中完成之后,进⾏点击菜单中的“编辑“”的选项。
4、选中编辑之后,弹出了下拉菜单中进⾏选中为“注释”菜单。
5、弹出了下⼀级菜单汇总,进⾏选中为“开启关闭注释整⾏”的选项。
6、这样就在选中代码被添加了注释设置。
以上就是sublime代码添加注释的教程,希望⼤家喜欢,请继续关注。
SublimeText2使用及插件介绍HugoWeb前端开发

SublimeText2使用及插件介绍HugoWeb前端开发之前就听说过该软件,试用了下,自己不太熟悉就没去深入了解使用了,昨天在公司上班的时候,小王子又在群里介绍了这个软件,于是乎再次打开试用,自己摸索了下,发现确实很不错。
整体配色方案看上去也很舒服自然。
可扩展性很强。
一、快捷键Sublime Text 2包含了大量快捷操作,而且还很方便修改和追加自己喜欢的快捷键。
查看快捷键的方式也很简单。
点击菜单栏:Preferences->Key Bindings – Defaults 即可查看。
如果要定义自己的快捷键,可以在Preferences->Key Bindings –Users 里进行设置,相当方便。
个人感觉,支持插件的软件或工具,都是相当不错的。
插件可手动安装和自动安装,有点不爽的是,这软件无法设置代理,有些网络环境可能不允许访问陌生网络,从而导致自动安装方式失效。
比如我公司,自动安装无法使用,只能选择手动安装。
当然,也可以在家用绿色版的Sublime Text ,将插件装好配置好,再拿到公司用。
也是一样的方便。
1、手动安装直接下载安装包解压缩到Packages 目录(菜单->preferences->packages )2、自动安装(使用Package Control 组件安装)1)按Ctrl+`调出console2)粘贴以下代码到底部命令行并回车:帮助1 import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen(''+pf.rep lace(' ','%20')).read())3)重启Sublime Text 24)如果在Perferences->package settings 中看到package control 这一项,则安装成功。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【蕃薯耀编程开发】Sublime T ext2使用教程,最好用的文本编辑器(2012-08-04 14:24:37)转载▼分类:工具标签:蕃薯耀蕃薯sublimetext2最好编辑器Sublime Text 2是一个轻量、简洁、高效、跨平台的编辑器,方便的配色以及兼容vim快捷键等各种优点博得了很多前端开发人员的喜爱,当然也包括我,在看到Atan的介绍后,我就一直在用了。
本文将介绍sublime和一些好用的插件和扩展的安装。
Sublime Text 2基本上是共享软件,免费版和收费版基本无区别,只是偶尔会弹框让你去购买,这个基本不影响使用。
如果你不了解它,也可以看下小众软件的这篇详细介绍。
一.Sublime的安装在windows下:下载sublime 的安装包/2解压缩即可。
在 linux下:sudo add-apt-repository ppa:webupd8team/sublime-text-2sudo apt-get updatesudo apt-get install sublime-text-2二.安装包控制按Ctrl+`(这个[`]表示键盘左上角的键)调出console 粘贴以下代码到底部命令行并回车:import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('/'+pf.replace(' ',' ')).read())重启Sublime Text 2。
如果在Perferences->package settings中看到package control 这一项,则安装成功。
三.对齐对于某些喜欢整齐的码农来说,看到下面这种情况可能是让其无法忍受的: Var name='zhangsan';Var age='18';Var department='computer'一定要改成这样才放心:Var name = 'zhangsan';Var age = '18';Var department = 'computer';在 Sublime Text 2 之中,一个Sublime Alignment插件也可以轻松实现:1. 按下crol + shift +P调出控制面板2. 输入install选择Package Control: Install Package选项,按下回车。
3. 在列表中找到Alignment,按下回车进行自动安装。
4. 重启sublime,按住ctrol + alt + A 自动对齐。
四.推荐插件前端快速开发利器: Zend Coding1. 输入:div#wrapper>div.header+div.main+div.footer2. 按 Tab 键自动生成:----------------------JsFormat 快速格式化js1. 打开一个压缩后的 jquery2. 按 Ctrol + Alt + F 键自动格式化成:五. Sublime 常用的快捷键Ctrl + L 选择整行(按住-继续选择下行)Ctrl + KK 从光标处删除至行尾Ctrl + Shift+K 删除整行Ctrl + Shift+D 复制光标所在整行,插入在该行之前Ctrl + J 合并行(已选择需要合并的多行时)Ctrl + KU 改为大写Ctrl + KL 改为小写Ctrl + D 选词(按住-继续选择下个相同的字符串)Ctrl + M 光标移动至括号内开始或结束的位置Ctrl + Shift + M 选择括号内的内容(按住-继续选择父括号)Ctrl + / 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)Ctrl + Shift + / 注释已选择内容Ctrl + Z 撤销Ctrl + Y 恢复撤销Ctrl + M 光标跳至对应的括号Alt + . 闭合当前标签Ctrl + Shift+A 选择光标位置父标签对儿Ctrl + Shift+[ 折叠代码Ctrl + Shift+] 展开代码Ctrl + KT 折叠属性Ctrl + K0 展开所有Ctrl + U 软撤销Ctrl + T 词互换Tab 缩进自动完成Shift + Tab 去除缩进Ctrl + Shift+↑ 与上行互换Ctrl + Shift+↓ 与下行互换Ctrl + K Backspace 从光标处删除至行首Ctrl + Enter 光标后插入行Ctrl + Shift+Enter 光标前插入行Ctrl + F2 设置书签F2 下一个书签Shift + F2 上一个书签上面教程来自:/?post=6------------------------------------------------------------------------------个人快捷键设置(个人Eclipse使用习惯):{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default /DeleteLine.sublime-macro"} },{ "keys": ["ctrl+shift+u"], "command": "upper_case" },{ "keys": ["ctrl+shift+l"], "command": "lower_case" },{ "keys": ["ctrl+shift+a"], "command": "alignment" },{ "keys": ["ctrl+shift+j"], "command": "js_format"},{ "keys": ["alt+."], "command": "close_tag" },{ "keys": ["alt+/"], "command": "auto_complete" },{ "keys": ["alt+/"], "command": "replace_completion_with_auto_complete", "context":[{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },{ "key": "auto_complete_visible", "operator": "equal", "operand": false },{ "key": "setting.tab_completion", "operator": "equal", "operand": true }]}****************************************************插件:1.zen coding ctrl+alt+enter2.aliment ctrl+alt+a3. BracketHighlighter:该插件提供配对标签,或大括号或字符引号的配对高亮显示,算是对系统高亮的加强吧。
4. ClipboardHistory:该插件提供多剪贴板支持,你就可以同时保存多个剪贴板里的内容了,ctrl+alt+v快捷键调出5. DocBlockr:该插件提供文件注释,方便后期根据注释生成API文档,输入“/**” + enter 调出 (在function的上面一行才有效果)4. GBK Encoding Support: sublime本身不支持GBK,根据国情,装下这个插件就可以支持GBK了,同时也提供GBK与UTF之间转换5. jquery提供jquery的一些snippets片段,方便直接调用6. JS Minifer提供js压缩功能,基于GG的closure complier,快捷键:ctrl+alt+M7. js Format提供JS格式化功能,快捷键 ctrl+alt+F,会根据8. prefixr提供CSS3属性的浏览器前缀自动填充像-webkit- -moz- -o- -m-, 快捷键:ctrl+alt+x9. yui compressor 这个大家都知道yui的压缩工具,可以压缩CSS JS,直接CTRL+B,即可(需要安装配置了jdk之后才可用)10. sublime v8该插件提供jshint 及 v8引擎的js解析器console,jshint是JS语法校验器,较严格, v8则跟chrome里控制台一样。
11. zenCoding大名鼎鼎的zencoding就不用多解释,调用方式两种,一种是ctrl+alt+enter, 一种是输入完标签直接tab。
12. html5 该插件提供许多 html5相关的标签等snippets,也非常实用。
13. SFTP该插件提供ftp服务器管理,用来管理自己的空间很不错,通过配置来操作Sublime Text 2 入门及技巧(转)技术党:看了Nettuts+ 对Sublime Text 2 的介绍,立刻就兴奋了,诚如作者Jeffrey Way 所说:“《永远的毁灭公爵》都发布了,TextMate 2 还没发”,你还能指望它么?TextMate 开发者的消极态度已经无法让人忍受了。