[Gambas-user] Weird Press Enter > formatting error in IDE
Benoit Minisini
gambas at ...1...
Fri Jul 4 22:46:24 CEST 2008
On lundi 30 juin 2008, richard terry wrote:
> Version 1440.
>
> This should be reproducable.
>
> I'd typed in the function name and started writing a comment:
>
> Public Function Letter_Validate_Contents() as Boolean
> 'Checks that there is adequate content in a letter
> 'if there is returns a true flag
> '-------------------------------------------------
> end
>
> But I usually segregate my comments by putting a line top and bottom, so I
> clicked on the editor after the word Boolean, thing the <enter> action
> would insert a blank line.
>
> What it did was shift the whole of my subroutine contents **After** the
> 'end' keyword of the subroutine, as per the followin piccies.
>
> If you look at piccie number 1 you can see the cursor flash captured after
> the word Boolean, and in piccie number 2, the result, with the cursor 2
> lines down (I only hit one <enter> action.
>
> Regards
>
>
> Richard
This bevahiour is not weird: you must type the END keyword first (like in your
mail, unlike in your screenshots), otherwise the IDE will insert it
automatically.
Regards,
--
Benoit Minisini
More information about the User
mailing list