Microsoft Visual Studio Community 2022: How do I disable Python code completion when "Tools > Options > Python > Language server" option is missing?

melent 25 Reputation points
2023-05-14T06:57:09.84+00:00

I'm using Microsoft Visual Studio Community 2022 Version 17.5.5. I would like to disable Python code completion because I find it too intrusive. The question is similar to https://learn.microsoft.com/en-us/answers/questions/1180527/visual-studio-2022-community-edition-how-to-disabl, however the answer provided there does not work in my case because "Tools > Options > Python > Language server" is not present in my version of Visual Studio and it is not obvious to me why it does not, nor how to add it. As my comment on that question has gone unanswered I have decided to ask this directly.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,565 questions
{count} votes

Accepted answer
  1. daniel lingar 40 Reputation points
    2023-05-14T09:26:30.2433333+00:00

    I apologize for the confusion. The option to disable Python code completion is not available in Visual Studio 2022 version 17.5.5. The option to disable code completion will be available in a future version of Visual Studio 2022.

    In the meantime, you can disable Python code completion by setting the following environment variable:

    Code snippet

    PYLINT_DISABLE=1
    

    Use code with caution. Learn more

    content_copy

    This will disable all linting features in Visual Studio, including code completion.

    I hope this helps! Let me know if you have any other questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful