Written in visual studio 2019 Python code, how to make the code completion is selected by default

man fool 21 Reputation points
2021-07-08T01:20:34.42+00:00

For example, when I enter a print statement, although vs gives a prompt, it does not select the print statement by default (it is enclosed by a blank box). I press enter. Instead of typing in the print statement, I start a new line.
112793-image.png

Normally, it should be selected by default (selected by a solid box), as shown in the following figure.
112704-image.png

Is there any way to set visual studio 2019 to be selected by default for Python code completion. That is, you can press enter to input the prompt code (including the prompt code selected by default in other programming languages)

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. PengGe-MSFT 3,381 Reputation points
    2021-07-08T06:47:24.78+00:00

    Hi, @man fool

    Welcome to Microsoft Q&A!

    You can use Tab to autocomplete.
    If you want to use Enter instead of Tab, unlike the C++ text editor, the Python text editor does not provide related setting options.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    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 comments No comments

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.