1
Vote

Suggestion window swallows enter key after typing full identifier

description

When typing out an identifier and the suggestion window pops up, if you continue to type out the entire identifier and then press enter, that enter key is swallowed by the suggestion window. This behavior is unintuitive since the user has typed out the entire identifier and so there is nothing to "autocomplete". In the case that an autocomplete suggestion is not used the window should not interfere at all with typing.

A specific example of this is when typing an import: begin typing the identifier of the package to import, wait for the suggestion window to popup, then type out the complete identifier name, then press enter. The expected behavior is that the cursor should move to the next line. The current behavior requires me to press enter twice, one to clear the suggestion window and the next to move the cursor.

Further justification is that this behavior is different than the standard Visual Studio intellisense behavior that does not interfere with normal typing if you do not end up using a suggested completion or typed it out fully.

comments

Zooba wrote Jun 2 at 9:50 PM

You've made such a convincing argument that I've travelled back in time and added the feature for you :)

You'll find it under Tools\Options\Text Editor\Python\Advanced - "Add new line on enter at end of fully typed word".

(Slightly more seriously, that's one of the more well written feature requests we've received. I look forward to your next one.)