question

manfool-3704 avatar image
0 Votes"
manfool-3704 asked PengGe-MSFT edited

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

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)


vs-general
image.png (125.6 KiB)
image.png (59.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT edited

Hi, @manfool-3704

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.