The full layout of a sample .sublime-project
file can be found in the official docs:
{
"folders":
[
{
"path": "src",
"folder_exclude_patterns": ["backup"],
"follow_symlinks": true
},
{
"path": "docs",
"name": "Documentation",
"file_exclude_patterns": ["*.css"]
}
],
"settings":
{
"tab_size": 8
},
"build_systems":
[
{
"name": "List",
"shell_cmd": "ls -l"
}
]
}
So, the "settings"
array should be on the same level as the "folders"
one. In your case, your file should look like this:
{
"folders":
[
{
"follow_symlinks": true,
"path": "C:\\Users\\Mads\\GoProjects"
},
{
"follow_symlinks": true,
"path": "C:\\Users\\Mads\\PythonProjects"
}
],
"settings":
{
"python_interpreter": "C:\\Users\\Mads\\.virtualenv\\MyProject\\usr\\bin\\python.exe"
}
}
Obviously, you'll need to set the path to the actual location of your virtualenv's python.exe
file.