SublimeLinter
=============
## SublimeLinter 3 has landed!
SublimeLinter for Sublime Text 3 is [here](https://github.com/SublimeLinter/SublimeLinter3), and it’s soooooo much better than before! Install it from Package Control and enjoy!
Unless someone else comes forward, SublimeLinter for Sublime Text 2 will no longer be supported. I strongly encourage everyone to upgrade to Sublime Text 3 and SublimeLinter 3 — you’ll be glad you did! Take a look at the [extensive documentation](http://sublimelinter.readthedocs.org/) to see the great new features in SublimeLinter 3.
## Share the love!
I spent hundreds of hours writing and documenting SublimeLinter 3 to make it the best it can be — easy to use, easy to configure, easy to update, easy to extend. If you use SublimeLinter and feel it is making your coding life better and easier, please consider making a donation to help fund development and support. Thank you!
To donate: https://github.com/SublimeLinter/SublimeLinter3#share-the-love
Thank you for your support!
---
SublimeLinter v1.7 Overview
---------
SublimeLinter is a plugin that supports "lint" programs (known as "linters"). SublimeLinter highlights
lines of code the linter deems to contain (potential) errors. It also
supports highlighting special annotations (for example: TODO) so that they
can be quickly located.
SublimeLinter has built in linters for the following languages:
* C/C++ - lint via `cppcheck`
* CoffeeScript - lint via `coffee -s -l`
* CSS - lint via built-in [csslint](http://csslint.net)
* Git Commit Messages - lint via built-in module based on [A Note About Git Commit Messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
* Haml - syntax check via `haml -c`
* HTML - lint via `tidy` (actually [tidy for HTML5](http://w3c.github.com/tidy-html5/))
* Java - lint via `javac -Xlint`
* JavaScript - lint via built in [jshint](http://jshint.org), [jslint](http://jslint.com), or the [closure linter (gjslint)](https://developers.google.com/closure/utilities/docs/linter_howto) (if installed)
* Lua - syntax check via `luac`
* Objective-J - lint via built-in [capp_lint](https://github.com/aparajita/capp_lint)
* Perl - lint via [Perl::Critic](http://perlcritic.com/) or syntax+deprecation check via `perl -c`
* PHP - syntax check via `php -l`
* Puppet - syntax check via `puppet parser validate` or `puppet-lint`
* Python - native, moderately-complete lint
* Ruby - syntax check via `ruby -wc`
* Squirrel - syntax check via `sq`
* XML - lint via `xmllint`
Quickstart
------------
* Install using [Package Control ST2 plugin](http://wbond.net/sublime_packages/package_control/installation).
* `SublimeLinter` runs in the background (by default), linting files for style and potential errors.
* Season to taste (edit configuration) by editing `Preferences->Package Settings->SublimeLinter->Settings - User`.
* Produce better code!
Installing
----------
**With the Package Control plugin:** The easiest way to install SublimeLinter is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control
Once you install Package Control, restart ST2 and bring up the Command Palette (`Command+Shift+P` on OS X, `Control+Shift+P` on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select SublimeLinter when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeLinter up to date with the latest version.
**Without Git:** Download the latest source from [GitHub](https://github.com/SublimeLinter/SublimeLinter) and copy the SublimeLinter folder to your Sublime Text "Packages" directory.
**With Git:** Clone the repository in your Sublime Text "Packages" directory:
git clone https://github.com/SublimeLinter/SublimeLinter.git
The "Packages" directory is located at:
* OS X:
~/Library/Application Support/Sublime Text 2/Packages/
* Linux:
~/.config/sublime-text-2/Packages/
* Windows:
%APPDATA%/Sublime Text 2/Packages/
### JavaScript-based linters
If you plan to edit files that use a JavaScript-based linter (JavaScript, CSS), your system
must have a JavaScript engine installed. Mac OS X comes with a preinstalled JavaScript engine called
JavaScriptCore, which is used if Node.js is not installed. On Windows, you **must** install the
JavaScript engine Node.js, which can be downloaded from [the Node.js site](http://nodejs.org/#download).
On Mac OS X, you **must** install Node.js if you plan to edit JavaScript or CSS files that
use non-ASCII characters in strings or comments, because JavaScriptCore is not Unicode-aware.
After installing Node.js, if the Node.js executable ("node" on Mac OS X, "node.exe" on Windows)
cannot be found by SublimeLinter, you may have to set the path to the executable in the
"sublimelinter\_executable\_map" setting. See the "Configuring" section below for info on
SublimeLinter settings.
Using
-----
SublimeLinter runs in one of three modes, which is determined by the "sublimelinter" user setting:
* **Background mode (the default)** - When the "sublimelinter" setting is true, linting is performed in the background as you modify a file (if the relevant linter supports it). If you like instant feedback, this is the best way to use SublimeLinter. If you want feedback, but not instantly, you can try another mode or set a minimum queue delay with the "sublimelinter_delay" setting, so that the linter will only run after a certain amount of idle time.
* **Load-save mode** - When the "sublimelinter" setting is "load-save", linting is performed only when a file is loaded and after saving. Errors are cleared as soon as the file is modified.
* **Save-only mode** - When the "sublimelinter" setting is "save-only", linting is performed only after a file is saved. Errors are cleared as soon as the file is modified.
* **On demand mode** - When the "sublimelinter" setting is false, linting is performed only when initiated by you. Use the `Control+Command+L` (OS X) or `Control+Alt+L` (Linux/Windows) key equivalent or the Command Palette to lint the current file. If the current file has no associated linter, the command will not be available.
Within a file whose language/syntax is supported by SublimeLinter, you can control SublimeLinter via the Command Palette (`Command+Shift+P` on OS X, `Control+Shift+P` on Linux/Windows). The available commands are:
* **SublimeLinter: Lint Current File** - Lints the current file, highlights any errors and displays how many errors were found.
* **SublimeLinter: Show Error List** - Lints the current file, highlights any errors and displays a quick panel with any errors that are found. Selecting an item from the quick panel jumps to that line.
* **SublimeLinter: Background Linting** - Enables background linting mode for the current view and lints it.
* **SublimeLinter: Disable Linting** - Disables linting mode for the current view and clears all lint errors.
* **SublimeLinter: Load-Save Linting** - Enables load-save linting mode for the current view and clears all lint errors.
* **SublimeLinter: Save-Only Linting** - Enables save-only linting mode for the current view and clears all lint errors.
* **SublimeLinter: Reset** - Clears all lint errors and sets the linting mode to the value in the SublimeLinter.sublime-settings file.
Depending on the file and the current state of background enabling, some of the commands will not be available.
When an error is highlighted by the linter, putting the cursor on the offending line will result in the error message being displayed on the status bar.
If you want to be shown a popup list of all errors whenever a file is saved, modify the user setting:
"sublimelinter_popup_errors_on_save": true
If there are errors in the file, a quick panel will appear which shows the error message, line number and source code for each error. The starting location
没有合适的资源?快使用搜索试试~ 我知道了~
Sublime Text 3 21个常用插件
共2700个文件
png:760个
py:376个
sublime-snippet:344个
4星 · 超过85%的资源 需积分: 44 91 下载量 176 浏览量
2016-12-04
14:44:31
上传
评论 2
收藏 48MB ZIP 举报
温馨提示
AngularJS,AutoFileName选择文件,BracketHighlighter,ColorPicker调色器,ConvertToUTF8转为UTF8,CSS3,Emmet代码自动完成,HTML5,IMESupport,jQuery,Nil-Theme主题,ruby环境+sass下载,SASS-Build,sass,SideBarEnhancements-st3用浏览器打开,SublimeCodeIntel-master代码自动完成,SublimeFileDiffs-master比较文件的不同,Sublime-HTMLPrettify-master代码格式化,SublimeLinter-for-ST2-1.8.0,SublimeText-Nodejs-master,SublimeTmpl-master默认的代码格式,Theme - Soda主题。
资源推荐
资源详情
资源评论
收起资源包目录
Sublime Text 3 21个常用插件 (2700个子文件)
background 0B
background-attachment 0B
background-break 0B
background-clip 0B
background-color 0B
background-image 0B
background-origin 0B
background-repeat 0B
background-size 0B
border 0B
border-bottom 0B
border-bottom-image 0B
border-bottom-left-image 0B
border-bottom-right-image 0B
border-bottom-style 0B
border-break 0B
border-collapse 0B
border-corner-image 0B
border-fit 0B
border-image 0B
border-left 0B
border-left-image 0B
border-left-style 0B
border-length 0B
border-right 0B
border-right-image 0B
border-right-style 0B
border-style 0B
border-top 0B
border-top-image 0B
border-top-left-image 0B
border-top-right-image 0B
border-top-style 0B
bottom 0B
box-shadow 0B
box-sizing 0B
build 134B
imesupport_hook.c 4KB
imesupport_hook.c 4KB
caption-side 0B
setup.cfg 64B
python3-3.3.cix 13.35MB
python-2.6.cix 10.33MB
python-2.5.cix 8.92MB
python-2.7.cix 8.74MB
python-2.4.cix 7.91MB
python3-3.2.cix 6.01MB
python3-3.1.cix 5.86MB
perl-5.14.cix 3.72MB
ruby-1.8.cix 2.84MB
perl-5.16.cix 2.66MB
perl-5.12.cix 2.65MB
perl-5.10.cix 2.53MB
dojo.cix 2.39MB
ruby-1.9.3.cix 2.18MB
perl-5.8.cix 2.04MB
ext.cix 2.01MB
pywin32.cix 1.78MB
python3-pywin32.cix 1.66MB
ruby-1.9.2.cix 1.57MB
yui.cix 1.29MB
drupal.cix 1.29MB
php-5.5.cix 925KB
php-5.4.cix 833KB
php-5.3.cix 817KB
php-5.2.cix 737KB
php-5.0.cix 712KB
php-5.1.cix 711KB
mozilla_toolkit.cix 581KB
php-4.4.cix 557KB
rails.cix 364KB
pecl.cix 345KB
javascript.cix 240KB
jquery.cix 141KB
mochikit.cix 118KB
prototype.cix 45KB
node.js.cix 30KB
html5.cix 23KB
xbl.cix 3KB
xpcom.cix 1KB
clear 0B
clip 0B
.compat_flag_3067 166B
config 167B
content 0B
syntax_test_performance_yahoo.css 243KB
property-list.css 214KB
syntax_test_performance_css_tricks.css 199KB
bootstrap.css 117KB
syntax_test_selectors.css 60KB
syntax_test_at_media.css 36KB
syntax_test_at_page.css 34KB
syntax_test_properties_a.css 28KB
syntax_test_at_font_face.css 23KB
syntax_test_at_font_feature_values.css 22KB
syntax_test_nesting.css 21KB
syntax_test_at_media_mdn.css 20KB
syntax_test_at_counter_style.css 14KB
font-awesome.css 14KB
selectors.css 13KB
共 2700 条
- 1
- 2
- 3
- 4
- 5
- 6
- 27
资源评论
- weixin_377636262017-07-30下载不了啊
- tomorrowtest2017-10-09解压后有100多m,自己按需使用吧
- oAiZhiZhiChengShang12017-03-23解决了我的大问题,很好
My_Bells
- 粉丝: 59
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功