简体   繁体   中英

Python Extension for visual studio code not showing error or warning messages

When i write python code on my visual studio code editor i can't find any warnings or errors . I installed python extension, I also change the version of that extension.. I also read many documentations of python extension and visual studio but can't find any solution Here is the image...

You could use Python code analysis tool "Pylint" or use "Microsoft" or "Pylance" language service in VS Code.

  1. Python code analysis tool "Pylint".

    Please install the module "pylint" in the Python environment currently used in VS Code and enable its use settings.

    Linting Python in Visual Studio Code.

  2. Use "Microsoft" or "Pylance" language services.

Please use it in "settings.json":

  "python.languageServer": "Microsoft",`

or

 "python.languageServer": "Pylance",

before:

在此处输入图像描述

after:

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM