Home > OS >  VSCode: Python, Unexpected argument alerts
VSCode: Python, Unexpected argument alerts

Time:11-15

I have recently moved from PyCharm to VSCode for Python programming, and am missing the PyCharm functionality to alert you of unexpected named arguments.

This helps me identify when I am using an argument from the wrong class, or have mistyped an argument.

Does similar functionality exist for VSCode?

CodePudding user response:

You need to download the python extension in VSCode.

CodePudding user response:

It looks like you are looking for the Linting and Autocomplete and IntelliSense of python in the VSCode.

In briefly, you need to install the extension of Python and Pylance and add these in the settings.json file:

"python.languageServer": "Pylance",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
  • Related