Visual Studio代码-您可以对python进行实时更新吗? [英] Visual Studio Code - Can you have real-time linting for python?

查看:211
本文介绍了Visual Studio代码-您可以对python进行实时更新吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有完全相同的问题,但没有任何答复.

There is the same exact question here, but there hasn't been any replies.

使用VSCode对Python进行实时掉毛

我现在正在使用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.

这篇关于Visual Studio代码-您可以对python进行实时更新吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆