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

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.
3,815 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 18,886 Reputation points Microsoft Vendor

    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:


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



    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