I use VSC latest version (1.59) on mac/osx. When i modify some settings usually they should be recorded in the user setting. If i open my setting in json format , some lines will look like this :
"workbench.settings.editor": "json",
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "ayu",
That's the changes i made to the color theme and file icon. But when i change my python interpreter in the command palette -> python:select interpreter, the changes i made is not recorded/written there. I expect line like :
python.defaultInterpreterPath = .....
But i doesn't exist. It actually behaves properly and use the selected python interpreter as expected but it's just not being written to the user setting.json file inside my user directory (/Users/andi/Library/Application Support/Code/User/setting.json) or inside the .vscode folder in current project.
Does anyone know where this setting has been written to ?
It will modify the setting of
python.pythonPathinstead ofpython.defaultInterpreterPathin your Workspace setting.The explanation of
python.defaultInterpreterPath(official docs):Update:
Sorry for that. For testing, I have used the Python Extension with an older version.
python.pythonPathcan not be changed in the new version.python.defaultInterpreterPathonly work for the first time, and will not be changed when you switch the python interpreter(official docs).In fact, the
python interpreterpath will be stored in the local storage and you can not modify it.