配置文件settings.json推荐插件
配置文件settings.json{
"python.testing.unittestArgs": [
"-v",
"-s",
"./__pycache__",
"-p",
"*test.py"
],
"python.testing.pytestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.unittestEnabled": true,
"editor.wordWrap": "on", // 自动换行
"editor.lineHeight": 26, // 编辑器中的行高
"editor.fontSize": 16, // 编辑器中的字体大小
"editor.formatOnSave": true, //编辑器自动保存
"python.linting.flake8Enabled": true, //启用flake8,首先需要pip3 install falke8
"python.formatting.provider": "yapf", ///启用yapf,首先需要pip3 install yapf
"workbench.iconTheme": "vscode-icons", //启用vscode图标
"python.pythonPath": "/home/xxx/anaconda3/envs/dev/bin/python"
}
推荐插件
Python(Python必装)
Path Intellisense(自动联想路径)
vscode-icons(文件图标)
Bracket Pair Colorizer(用不同颜色区分出代码中的括号)
Chinese (Simplified) (简体中文)
Atom One Dark Theme(非常不错的暗色调主题)



