好吃
- vs 占用的内存很少 很轻量
- 但是需要自己人肉配置
核心两个点
- 启动项目文件 launch.json
- 项目设置包括 rest http client
django .vscdoe 新建 launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver"
],
"django": true,
"justMyCode": true
}
]
}
http client 变量
{
"rest-client.environmentVariables": {
"$shared": {
"host": "http://localhost:8000/api/v1/",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWRtaW4iLCJ1c2VyX2lkIjoiNjNjNDkwOTU3YzcxNDJhM2E4MzM2NzA1Yjc5NWZhY2EifQ.UBjRyd0PeA2PPi1oLmzfZa_aWkwFRJXC1t3cVmghtz8"
},
"local": {
"hostname": "localhost:8080",
"password": "{{$shared password}}"
},
"production": {
"hostname": "localhost:8081",
"password": "{{$shared password}}"
}
},
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.shell.osx": "zsh",
"terminal.integrated.fontFamily": "monospace"
}