[Gambas-user] Change to the Gambas IDE to improve the workflow
Robert Rowe
robert.c.rowe at ...626...
Sun Mar 9 02:46:25 CET 2008
I've made a small change to my copy of the IDE that I feel is a great
improvement. I love the completion menu but I don't like that you have
to press the enter key to trigger it. The three keys that I most often
press after entering a keyword or object name are the space key, the
period or the left parenthesis. My change adds these three keys to the
list that triggers the completion. Benoît, if you agree that these
changes are positive could you add them to the official copy of the IDE
source?
You will need to get the latest gambas2 source from subversion. The
specific line(s) on which to make the changes will probably be different
in different versions. I haven't checked gambas3 but I'm sure that the
code is in the same procedure (ManageKey).
Here are the changes:
In the FCompletion class, line 515, comment the line that says:
ME.Hide
and insert a line that says:
InsertItem(TRUE)
This enables the spacebar to trigger completion.
Add the following 2 case blocks to enable the period and left
parenthesis keys:
CASE 40 'Left Parenthesis
InsertItem(TRUE)
RETURN FALSE
CASE 46 'Period
InsertItem(TRUE)
RETURN FALSE
Robert Rowe
More information about the User
mailing list