gpt4 book ai didi

python-3.x - Visual Studio Code : highlighted imports in python

转载 作者:行者123 更新时间:2023-12-05 04:53:20 24 4
gpt4 key购买 nike

我在工作的 Windows 笔记本电脑和家里的 Ubuntu PC 上都使用 Visual Studio Code。

我可以从我的 Windows vscode 中看到我希望在我的 Ubuntu 上也有的功能,但找不到它是设置、扩展还是其他东西。

功能是这样的:python 导入以绿色突出显示,如果未使用,则显示为灰色。

Windows 屏幕截图,我希望它如何工作:

/image/oA1Y0.png

Ubuntu 截图,目前情况:

/image/33WqC.png

有人知道我应该看哪里吗?我在两者上都使用了相同的颜色主题,Monokai。

谢谢!

最佳答案

您将通过 pip 安装获得 linting 警告 flake8 .

您还需要将此设置添加到您的 settings.json 文件中:

"python.linting.flake8Enabled": true

关于python-3.x - Visual Studio Code : highlighted imports in python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66123316/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com