This project has moved and is read-only. For the latest updates, please go here.


Suggestion window swallows enter key after typing full identifier


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.
Closed Aug 5, 2014 at 12:12 AM by Zooba


Zooba wrote Jun 2, 2014 at 10: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.)