1.创建项目
依次鼠标左键点击Project>Add Folder to Project...,选择test文件夹:
2.保存项目
依次鼠标左键点击Project>Save Project as ...,输入项目名test,保存,之后会出现两个文件:test.sublime-project和test.sublime-workspace
3.设置虚拟运行环境
打开test.sublime-project,添加setting项,如下:
{ "folders": [ { "path": "D:\\Work\\Projects\\flasky" } ] , "setting": { "python_interpreter":"$venv/Scripts/python" } }
保存即可。