Select to view content in your preferred language

Python Window AutoSuggest Accept Hotkey Change

09-15-2022 08:16 AM
Status: Implemented
Labels (1)
New Contributor III

Currently the only way to NOT accept a code suggestion / auto complete in the python window is to hit the right-arrow key. If you hit: escape, enter, or tab, none of these will "decline" the autosuggest. I would STRONGLY recommend that ENTER not accept the autocomplete.

Using ENTER to accept autocomplete means every time you want to run python from the window, if there is a suggestion at the end of your code, you have to FIRST hit the right-arrow key to decline the auto complete, THEN hit enter. ONLY TAB should accept autocomplete just like most other text editors and IDEs.

Status changed to: In Product Plan

We're working on this!  This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check the product life cycle information to get an idea of when to expect the next release.  

Status changed to: Implemented

Thank you for your feedback and suggestion to improve the behavior of code completion in the Python Window. We're happy to inform you that in ArcGIS Pro 3.2 we have made improvements to the behavior when using the ESC key, it will now keep focus on the window so that escaping the suggestions box is more fluid.

Regarding your suggestion to change the behavior of ENTER or TAB to only accept auto complete with TAB, we've decided to maintain the current standard behavior of most code editors and interactive interpreters such as Visual Studio, Visual Studio Code, IPython, and JNotebooks. While text editors generally only accept by tab, code editors usually accept with both ENTER and TAB.

Please see the What's New documentation for more new features in Pro 3.2. Additionally, we have also posted a Your Ideas in ArcGIS Pro 3.2 blog and video, take a look if interested!