博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sublime text3 python 插件与设置
阅读量:7273 次
发布时间:2019-06-29

本文共 2393 字,大约阅读时间需要 7 分钟。

hot3.png

插件安装与配置:

 

pylinter:

功能: 保存py文件时, 自动检测代码规范与错误

  1. cmd命令行输入安装pip install pylint
  2. Sublime安装pylinter
  3. Sublime首选项->Package Settings->Pylinter->Settings-User, 粘贴下面的配置
{ // When versbose is 'true', various messages will be written to the console. // values: true or false "verbose": false, // 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": [ "C:/Users/sheng/AppData/Local/Programs/Python/Python36-32/python.exe"//这个地方写python.exe路径 ], // Optionally set the working directory "working_dir": null,//写工作路径 // Full path to the lint.py module in the pylint package "pylint_path": "C:/Users/sheng/AppData/Local/Programs/Python/Python36-32/Lib/site-packages/pylint/lint.py",//这个地方写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": false, // 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) // 重要编程问题的错误(即最有可能的bug) // "F" : Fatal for errors which prevented further processing // 致命的错误,从而阻止进一步的处理 "ignore": [], // a list of strings of individual errors to disable, ex: ["C0301"] "disable": [], "plugins": [] }

 

sublimeREPL:

功能: 交互式终端, 使用这个插件可以方便的调用终端调试代码

python运行快捷键设置方法:

选择首选项->快捷键设置, 粘贴如下配置, 即可实现按下F5运行当前代码的功能:

[    {    "keys": ["f5"],    "caption": "SublimeREPL: Python - RUN current file",    "command": "run_existing_window_command",    "args": {        "id": "repl_python_run",        "file": "config/Python/Main.sublime-menu"}    },    {    "keys": ["f8"],    "caption": "SublimeREPL: Python - PDB current file",    "command": "run_existing_window_command",    "args": {        "id": "repl_python_pdb",        "file": "config/Python/Main.sublime-menu"}    },   ]

 

SublimeCodeIntel:

一个全功能的 Sublime Text 代码自动完成引擎, 同时提供跳转功能.

转载于:https://my.oschina.net/u/3093577/blog/1933820

你可能感兴趣的文章
Windows蓝屏dump文件查看器(转)
查看>>
Java多线程-线程的同步(同步代码块)
查看>>
nyoj322 sort 归并排序,树状数组
查看>>
leetcode -- Partition List
查看>>
timerTask任务定时器
查看>>
leetcode -- Triangle
查看>>
【转载】给VM虚拟机增加硬盘容量
查看>>
中断描述符表(Interrupt Descriptor Table,IDT)
查看>>
机器学习
查看>>
.NET:异常处理的两条“黄金定律”,求批!
查看>>
二叉树的深度
查看>>
android:screenOrientation的说明
查看>>
ubuntu安装日志
查看>>
XMLHTTP使用具体解释
查看>>
FindWindowEx用法
查看>>
Parallel的陷阱
查看>>
asp.net C# int 类型在32/64位环境下取值范围无变化
查看>>
二手房交易流程、交易税费 搜房网
查看>>
安装veloeclipse插件报错解决方案
查看>>
QQ公众号?是的,你没看错!
查看>>