-
首先安装SublimeLinter,在sublime中shift+ctrl+p,install packages:搜索sublimelinter,安装
-
到cmd或者powershell中适应pip安装PEP8,没有安装pip的自行Google
pip install PEP8
-
回到sublime text,Menu->Preferences->Package Settings->SublimeLinter->settings Default,添加如下字段。
"linters": {
"pep8": {
"@disable": false,
"args": [],
"excludes": [],
"ignore": "",
"max-line-length": null,
"select": ""
}
}