VS Code 开发配置

tasks.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "任务名称",
"type": "shell",
"command": "${config:python.pythonPath}",
"args": [
"${workspaceFolder}/manager.py",
"-web"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": []
}
]
}

sftp.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[
{
"name": "sftp name",
"host": "172.x.x.x",
"protocol": "sftp",
"port": 22,
"username": "username",
"password": "password",
"remotePath": "远程地址",
"uploadOnSave": true,
"useTempFile": false,
"openSsh": false,
"ignore": [
".idea",
".vscode",
".git",
".DS_Store",
"venv",
"__pycache__"
]
}
]

settings.json

1
2
3
4
5
6
7
8
9
10
{
"terminal.integrated.env.osx": {
"DEBUG": "True",
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none",
"python.pythonPath": "venv/bin/python"
}