[英]Dealing with vscode setting workspace python.pythonPath in git tracked project
We are working in a team and are tracking out .vscode folder including the settings.json.我们在一个团队中工作,正在跟踪 .vscode 文件夹,包括 settings.json。 When I change my conda environment it adds the following line to my settings当我更改 conda 环境时,它会将以下行添加到我的设置中
"python.pythonPath": "/home/sev/anaconda3/envs/testenv/bin/python",
Tracking this parameter would create problems in 2 ways for us:跟踪这个参数会给我们带来两种问题:
When working without the .vscode
folder this is not a problem as the user settings are used.在没有.vscode
文件夹的情况下工作时,这不是问题,因为使用了用户设置。 Is it possible to make vscode use the user settings for this particular setting and not add it everytime we change environment?是否可以让 vscode 使用此特定设置的用户设置,而不是每次更改环境时都添加它?
I found the following github issue relating to this https://github.com/microsoft/vscode-python/issues/2125 but there seems to be no solution (that I am able to understand) yet.我发现了以下与此https://github.com/microsoft/vscode-python/issues/2125相关的 github 问题,但似乎还没有解决方案(我能够理解)。 Is the way to go just to not share workspace settings?只是不共享工作区设置的方法吗?
选择加入以下 AB 实验解决了我的问题https://github.com/microsoft/vscode-python/wiki/AB-Experiments
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.