SublimeCodeIntel 代碼提示插件css
"python3":{
"python":"C:/Program Files/python34/python.exe",
"pythonExtraPaths":[
"C:/Program Files/python34/DLLs",
"C:/Program Files/python34/Lib",
"C:/Program Files/python34/Lib/lib-tk",
"C:/Program Files/python34/Lib/site-packages",
]
}
SideBarEnhancements 擴展了側邊欄中菜單選項的數量,提供刪除選項html
pylinter 使用該插件能夠讓 Pyhton 在保存時自動規範,並對違反規範顯示圖標。python
本身在st3中安裝了pylinter插件,可是沒有成功,出現以下錯誤:json
"Pylinter could not automaticallydetermined the path to lint.py. Please provide one in the settings file usingthe pylint_path variable. NOTE: If you are using a Virtualenv, the problemmight be resolved by launching Sublime Text from correct Virtualenv。
解決方法:windows
1)到官網https://pypi.python.org/pypi/pylint#downloads下載:pylint-1.xx.tar.gz,dos下運行它,或者直接運行其中的setup.py ,ide
2)開ST3,而後ctrl+shift+p ,remove package,remove掉這個pylint,package。能夠換一個 SublimeLinter 安裝。spa
(安裝 pylint插件
一、下載剛纔網頁中的gz包,而後用winRAR打開,而後code
二、cd到下載好的文件夾內,而後使用python setup.py install 在cmd中輸入pylint 有提示則表示安裝成功。)orm
安裝完成修改以下配置文件:
{
// 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:/Python36-32/python.exe"
],
// Optionally set the working directory
"working_dir": null,
// Full path to the lint.py module in the pylint package
"pylint_path": "C:/Python36-32/Lib/site-packages/pylint-1.8.2/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": false,
"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)
// "F" : Fatal for errors which prevented further processing
"ignore": [],
// a list of strings of individual errors to disable, ex: ["C0301"]
"disable": [],
"plugins": []
}
SublimeTmpl 新建文件模板插件
1.在settings-user中設置上本身的信息:
{
"disable_keymap_actions": false, // "all"; "html,css"
"date_format" : "%Y-%m-%d %H:%M:%S",
"attr": {
"author": "chen",
"email": "reviewcheng@126..com",
"link": "http://www.baidu.com/"
}
}
Terminal 打開一個命令窗口,用於各類命令操做
AutoPep8 讓在保存代碼時自動格式化
1.在settings-user中設置上本身的信息:
{
"format_on_save": true,
}
自動將 Python 代碼按 PEP8 規範格式化,安裝完添加以下配置可自動在保存文件的時候格式化:
Anaconda 自動匹配關鍵字等實用功能,有效提升開發效率
SublimeREPL 代替st3自帶的crtl+b 的輸出控制檯(按esc退出)
定義快捷鍵 f5
[
{
"caption": "Tmpl: Create python", "command": "sublime_tmpl",
"keys": ["ctrl+alt+n"], "args": {"type": "python"}
},
{
"keys": ["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]