WEE auto-complete
- Posted by dcuny Jan 25, 2015
- 1924 views
One feature I miss from the Euphoria editor is auto-completion of blocks. For example:
if ...
autocompletes to something like:
if ... then end if
I'd test it out with ed, but launching ed currently gives me this error:
<0158>:: Wrong number of arguments supplied for forward reference C:\euphoria\bin\ed.ex (547): function SyntaxColor. Expected 2, but found 4. color_line = SyntaxColor(this_line, ,get_multiline( bline - 1 )) ^
Anyway, the auto-complete comes in handy, but should probably be an optional sort of thing.
The Ctrl+Space behavior would also be nice if it inserted the missing include at the top of the file on selection.
It would be nice if the Subroutine Arguments (Shift+F2) worked a bit smarter. Currently, you have to select the routine name in order for the arguments to display. What would be nicer is if it popped up automatically. The simplest way (but not most robust) would be to look for a '(' key being pressed. It would then look to the left of the parenthesis to see if there were an token there that belonged to a function. If there was, it could automatically display the argument list for that routine.
- David