http://www.360doc.com/content/14/1110/11/15077656_424004081.shtml

安装 pylinter 插件

    详见 sublime 插件安装

  配置

{
// When versbose is 'true', various messages will be written to the console.
// values: true or false
"verbose": true,
// The full path to the Python executable you want to
// run Pylint with or simply use 'python'.
"python_bin": "python",
// The following paths will be added Pylint's Python path
"python_path": [ ],
// Optionally set the working directory
"working_dir": null,
// Full path to the lint.py module in the pylint package
"pylint_path": "D:/Python27/Lib/pylint-1.6.4/pylint/lint.py",
// Optional full path to a Pylint configuration file
"pylint_rc": null,
// Set to true to automtically run Pylint on save
"run_on_save": true,
// Set to true to use graphical error icons
"use_icons": true,
"disable_outline": false,
// Status messages stay as long as cursor is on an error line
"message_stay": true,
// Ignore Pylint error types. Possible values:
// "R" : Refactor for a "good practice" metric violation
// "C" : Convention for coding standard violation
// "W" : Warning for stylistic problems, or minor programming issues
// "E" : Error for important programming issues (i.e. most probably bug)
// "F" : Fatal for errors which prevented further processing
"ignore": [],
// a list of strings of individual errors to disable, ex: ["C0301"]
"disable": [],
"plugins": []
}

安装 sublimeLinter 插件

  配置

{
"default": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"python django": "python",
"pythonimproved": "python",
"magicpython": "python",
"html 5": "html",
"html (django)": "html",
"html (rails)": "html",
"javascript (babel)": "javascript",
"php": "html"
},
"warning_color": "DDB700",
"wrap_find": true
}
}

 

使用:

  利用sublime 打开python,ctrl+s 保存时,在源码区显示pylint内容

  

  修改后,再次保存,即可完成

前提是已经安装好python及pylint。如果pylint无法使用,需要安装其他的module,可以通过pip进行安装。

消去显示区域中的outline

  设置pylinter 插件的配置, disable_outline 为 true,即能够去掉。

 "disable_outline": true,

sublimeCodeIntel 插件

  Sublime Text 3安装sublimeCodeIntel插件和使用

  按住alt+鼠标左键点击自己定义的任意函数,即可实现跳转。

  http://blog.sina.com.cn/s/blog_61bd52310102w3if.html

最新文章

  1. OpenCascade B-Spline Basis Function
  2. 示例开发过程记录:meteor,react,apollo
  3. 理解 OpenStack Swift (2):架构、原理及功能 [Architecture, Implementation and Features]
  4. Windows 10的TPM模块到底是不是美国全球监控体系的奠基石?
  5. [家里蹲大学数学杂志]第041期中山大学数计学院 2008 级数学与应用数学专业《泛函分析》期末考试试题 A
  6. URL、表单数据、IP等处理类
  7. Python查看函数代码内容
  8. PCL—低层次视觉—点云分割(基于形态学)
  9. MEF只导出类的成员
  10. 一个HTTP Basic Authentication引发的异常
  11. 巧用Dictionary<TKey,TValue>,完成客户需求
  12. java中匿名内部类的应用
  13. js-面试题-驼峰命名
  14. Python-正则表达式总结版
  15. SoapUI 访问代理设置
  16. 手动获取被spring管理的bean对象工具
  17. MariaDB 主从同步与热备(14)
  18. ubuntn中root密码设置和权限给予
  19. [转]expect实现ssh自动交互
  20. 怎样取消老毛桃软件赞助商---只需在输入框中输入老毛桃官网网址“laomaotao.org”

热门文章

  1. vector函数用法
  2. Selenium与PhantomJS【转】
  3. 新手用WPF山寨QQ管家7.6(三)
  4. java十分钟速懂知识点——NIO
  5. 决策树python实现小样例
  6. SPFA - Luogu 3385 【模板】负环
  7. Sql获取数据表字段说明
  8. C#入门篇-3:数据类型及转换
  9. Windows下Eclipse安装PyDev
  10. tomcat 服务不支持 chkconfig 以及其他服务不能添加到开机启动时的操作