skip to Main Content

I reset my Mac and install Python3 from homebrew and also installed vscode IDE.
I installed Python extension in vscode as well.

After that, I got some problem.
Before reset my Mac, vscode provided the variable, function with good readability – before reset.
But now it doesn’t work – after reet

I try to change Python interpreter in vscode to Python3.11 (installed using homebrew) to python3.9 (originally installed), But this does not solves this problem.

I remembered, only installing the Python extension in vscode before doing reset in my Mac.

How can I solve this problem ?

2

Answers


  1. I will suggest, try installing, Linter/Formatter

    pip install pylint
    pip install autopep8
    

    You can also search for python.analysis in settings in vscode.
    And also try reloading the vscode window.

    Login or Signup to reply.
  2. Highlight function is provided by Python and Pylance extension.

    You have to check whether they were installed correctly in extension stroe.

    Then add the following codes to your settings.json:

    "python.languageServer": "Pylance"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search