Visual Studio代码-您可以对python进行实时更新吗?
这里有完全相同的问题,但没有任何答复.
There is the same exact question here, but there hasn't been any replies.
我现在正在使用VS代码市场上的Python扩展.
I'm using the Python extension right now that is on the VS code marketplace.
经过大约一个小时的研究,我在短绒棉衫中找到了以下选项:
After about an hour of research, I found the following option in the linter:
python.linting.lintOnSave
我将其设置为false,但这只是禁用了掉毛功能.自动完成必须有一种实时的方法.
I set it to false, but that just pretty much just disables linting. There has to be a way if auto complete works in real-time.
是否可以在VS代码中实时完成整理工作?截至目前,棉绒仅在我保存时有效.我想念什么吗?
Is it possible to have linting done in real-time in VS code? As of right now, the linting only works when I save. Am I missing something?
Please a have look at this post. There was already a feature called lintOnTextChange
, but it is deprecated now. You have to extend your config file with the following lines to get it work on text change:
"python.linting.lintOnSave": true,
"files.autoSave": true
但这是一种解决方法,而不是针对您的问题的正确解决方案. 还可以查看此.
But this is more a workaround, instead of a proper solution for your problem. Also have a look at this.