A code assist function which suggests candidates responsive to a parsing
of a partial program instruction statement by determining a current
cursor position in the partial program instruction statement; parsing the
partial program instruction statement before the current cursor position;
generating a list of candidates to be inserted at the current cursor
position responsive to the parsing of the partial program instruction
statement; applying a user-selected preference to the list of candidates
to generate a suggested list of candidates; displaying the list of
suggested candidates; allowing a user to select one of the list of
suggested candidates; and inserting at the current cursor position the
user-selected suggested candidate. User-selectable preferences may be
selected such as a longer or shorter list of candidates; a longer or
shorter representation keyword candidates; a full syntax or partial
syntax representation of a candidate; and a character case representation
of a candidate.