sublime-phpcs
=============
This plugin adds PHP CodeSniffer, PHP Code Beautifier and Fixer, PHP Coding Standards Fixer, the PHP Linter, PHP Mess Detector, Scheck support to Sublime Text.
For more information about this plugin such as features, installation requirements etc, please click [here](http://benmatselby.github.io/sublime-phpcs)
Configuration
-------------
**You will need to configure this plugin to work for your setup**, please view the options [here](http://benmatselby.github.io/sublime-phpcs/#configuration)
FAQ
---
### What do I do when I get "OSError: [Errno 8] Exec format error"?
* This seems to be an issue you may get with regards to wrapper scripts.
* Please make sure that the application/script you are referencing has the correct shebang line, as per [GH-79](https://github.com/benmatselby/sublime-phpcs/issues/79)
### What do I do when I get "OSError: [Error 2] No such file or directory"?
* Well, first of all you need to check that you have PHP_CodeSniffer, and if being used, the phpmd application.
* If you have these applications installed, then it sounds like those applications are not in your PATH, or cannot be found in your PATH by the Python runtime, so configure "phpcs_php_path", "phpcs_executable_path", "phpmd_executable_path" and "php_cs_fixer_executable_path" with the actual paths to those applications
### What do I do when I get "OSError: [Errno 13] Permission denied"?
* It sounds like your path settings are incorrect.
* You need to make sure that when you specifiy the path you include the entire path including the application
```
$ which phpcs
/usr/local/bin/phpcs
```
* That entire output is the path you need in your configs.
### What if I've installed the applications using Homebrew?
If you have installed php-cs-fixer, phpmd or phpcs via homebrew then please make sure that you define the "*_executable_path" option to the .phar application and not the wrapper script that is placed in your bin folder, as this will cause odd behaviour.
### What other Key Bindings can I setup?
The following is a list of commands that you can bind to a keyboard shortcut:
* phpcs_fix_this_file
* phpcs_clear_sniffer_marks
* phpcs_goto_next_error
* phpcs_show_previous_errors
* phpcs_sniff_this_file
In order to achieve this you need to add the following to one of your key bindings settings file:
```json
{ "keys": ["ctrl+super+t"], "command": "phpcs_clear_sniffer_marks" }
```
To decide which "Fixer" to use, you can do:
```json
{ "keys": ["super+k", "super+f"], "command": "phpcs_fix_this_file", "args": {"tool": "CodeBeautifier"}},
```
or
```json
{ "keys": ["super+k", "super+f"], "command": "phpcs_fix_this_file", "args": {"tool": "Fixer"}},
```
You can then change the ctrl+super+t combination to something of your choosing.
没有合适的资源?快使用搜索试试~ 我知道了~
超全的sublime 3插件及配置,,妈妈再也不用担心我写代码慢啦
共87个文件
sublime-package:48个
pyd:12个
exe:6个
需积分: 11 31 下载量 43 浏览量
2016-04-15
10:32:56
上传
评论 2
收藏 10.16MB ZIP 举报
温馨提示
折腾了两天,把前端开发所有的插件都安装配置了,包括jQuery自动补全,AngularJS, node.js,jade支持,html5,php等,语法高亮,控制台调试,方法跳转,等等,再也不用自己去找啦,你值得拥有
资源推荐
资源详情
资源评论
收起资源包目录
Sublime Text 3.zip (87个子文件)
Sublime Text 3
_msi.pyd 63KB
sublime.py 32KB
unicodedata.pyd 745KB
select.pyd 11KB
sublime_text.exe 5.84MB
_ctypes.pyd 106KB
unins000.msg 22KB
_elementtree.pyd 163KB
crash_reporter.exe 183KB
sublime_plugin.py 20KB
changelog.txt 23KB
_hashlib.pyd 1.02MB
python3.3.zip 2.53MB
Packages
Batch File.sublime-package 3KB
XML.sublime-package 10KB
ASP.sublime-package 5KB
Regular Expressions.sublime-package 2KB
Lisp.sublime-package 6KB
Pascal.sublime-package 5KB
Go.sublime-package 22KB
YAML.sublime-package 7KB
AppleScript.sublime-package 31KB
HTML.sublime-package 36KB
Clojure.sublime-package 44KB
Textile.sublime-package 11KB
R.sublime-package 13KB
Default.sublime-package 351KB
Makefile.sublime-package 10KB
SQL.sublime-package 10KB
PHP.sublime-package 470KB
OCaml.sublime-package 58KB
D.sublime-package 43KB
TCL.sublime-package 11KB
C#.sublime-package 26KB
Scala.sublime-package 28KB
Language - English.sublime-package 1.2MB
Color Scheme - Default.sublime-package 269KB
ShellScript.sublime-package 25KB
Vintage.sublime-package 107KB
Graphviz.sublime-package 2KB
Erlang.sublime-package 39KB
Objective-C.sublime-package 56KB
Perl.sublime-package 46KB
Markdown.sublime-package 19KB
RestructuredText.sublime-package 9KB
C++.sublime-package 39KB
Lua.sublime-package 9KB
Python.sublime-package 43KB
LaTeX.sublime-package 50KB
ActionScript.sublime-package 16KB
CSS.sublime-package 55KB
Theme - Default.sublime-package 150KB
sublime-phpcs-master
Default (OSX).sublime-keymap 224B
phpcs.py 26KB
Default.sublime-commands 1KB
Main.sublime-menu 4KB
Side Bar.sublime-menu 887B
Context.sublime-menu 1KB
phpcs.sublime-settings 5KB
LICENSE.md 2KB
README.md 3KB
example-settings
windows-8.1-phpcs-fixer-linter.example 3KB
windows-7-phpcs-fixer-linter.example 3KB
nix-all-commands.example 3KB
Changelog.md 11KB
JavaScript.sublime-package 47KB
Groovy.sublime-package 63KB
Text.sublime-package 1KB
Java.sublime-package 46KB
Ruby.sublime-package 97KB
Diff.sublime-package 6KB
Rails.sublime-package 96KB
Matlab.sublime-package 79KB
Haskell.sublime-package 14KB
unins000.dat 12KB
pyexpat.pyd 165KB
_socket.pyd 50KB
winsound.pyd 10KB
_multiprocessing.pyd 14KB
python33.dll 3.74MB
_ssl.pyd 1.63MB
plugin_host.exe 661KB
unins000.exe 1.12MB
update_installer.exe 117KB
_decimal.pyd 237KB
msvcr100.dll 810KB
subl.exe 156KB
共 87 条
- 1
资源评论
phper95
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功