When typing code in a Python project, how can I avoid the up and down arrow keys getting caught by the suggestion box?

Hector 20 Reputation points
2023-09-13T01:39:30.6+00:00

When typing code in a Python project in Visual Studio 2022, a suggestion box will appear showing auto-complete suggestions. When I press the down arrow key to go to the next line of code, it will instead go to the next suggestion in the suggestion box. I have to close the suggestion box by pressing ESC before I can use the arrow keys to go to the next line. Is there a way to change this? For example to use other keys to scroll the suggestion box, so that pressing the down arrow will go to the next line of code? Or can I enable and disable the suggestion box with a keyboard shortcut?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 28,661 Reputation points Microsoft Vendor
    2023-09-13T08:04:02.58+00:00

    Hi @Hector,

    Welcome to Microsoft Q&A! 

    We can’t disable the completion list (suggestion box) with a keyboard shortcut. Pressing ESC may be the best way.

    You can refer to the similar issue and disable the Python code completion by setting the following environment variable:

    PYLINT_DISABLE=1 

    Besides, if you want to go to the next line of code, you can also try to press Right arrow key. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.