Page 1 of 1

Autocomplete list defaults to most recently selected item

Posted: Sat Sep 14, 2013 9:16 pm
by tinman
This is probably a bigger ask that it appears to be on the surface, and there's probably little gain, but it makes for a more productive environment IMO.

When you type a variable followed by the structure separator ("\") the autocomplete list should initially highlight the most recently used item for that variable. Obviously when you start typing a member name it highlights and reduces the list as it usually does. However, it means that for code blocks that frequently deal with the same member from a structured variable you can type the structured variable name, "\" then press enter to autocomplete and it will use whatever you last used.

So for example, if I have the following code:

Code: Select all

Structure mystruct
  foo.i
  List bar.i()
EndStructure

Define bbb.mystruct

; Code fills in the bar() list in bbb
I could then type:

Code: Select all

ResetList(bbb\
At this point the autocomplete has no history so it defaults to the first member (alphabetically?) as it does now. So I choose bar() from the autocomplete list and the IDE remembers that I last used bar() from bbb.

I then type:

Code: Select all

While NextElement(bbb\
And because the IDE remembered my last selection I can simply press return (and get "bar()") because I'm already on the member that is going to be most frequently used in this code block.

This should work out for any block of code that works primarily with the same member. If not, you do not lose anything (unless you always happen to select the first member).