功能: 保存py文件時, 自動檢測代碼規範與錯誤python
{ // 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": [] }
功能: 交互式終端, 使用這個插件能夠方便的調用終端調試代碼編程
python運行快捷鍵設置方法:編碼
選擇首選項->快捷鍵設置, 粘貼以下配置, 便可實現按下F5運行當前代碼的功能:spa
[ { "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"} }, ]
一個全功能的 Sublime Text 代碼自動完成引擎, 同時提供跳轉功能.插件