[Gambas-user] Making code pretty

Jesus ea7dfh at ...2382...
Thu Aug 4 21:57:36 CEST 2011


El 04/08/11 21:38, Kevin Fishburne escribió:
> On 08/04/2011 03:07 PM, Ron wrote:
>> Empty lines yes, keep them!
>>
>> But Kevin and I mean remove spaces on empty lines.
>>
>> Looks like this:
>>
>>    Dim sTest as string
>> ...<- remove these
>>    sTest = "this is a test"
>>
>>    ' here above normal empty line, without spaces on it.
> 
> Agreed. I do use empty lines all the time, but death to unnecessary spaces.
> 
> It would also be nice if variable/procedure/etc. names were 
> autocorrected to use the case/capitalization of their declarative 
> statement. This is already done for things like Print, Public, Private, 
> Dim, Inc, Return, etc. For example:
> 
> Public SoEasyToRead As String
> 
> Print soeasytoread ' "soeasytoread" should be autocorrected, just like 
> "print" is, to match the case of the declaration "SoEasyToRead".
> 
> Public Function LovelyProcedureName(Input As String) As String
>    ' Blah, blah.
> End Sub
> 
> Print lovelyprocedurename("Please make me lovely") ' 
> "lovelyprocedurename" should be autocorrected to match the function 
> declaration "LovelyProcedureName".
> 
> Also, changing the case of the declaration should automatically change 
> the case throughout the program. If that's too CPU intensive to do in 
> real-time, it could be done at compile or execution time.
> 

Yes, yes!

And as some time ago I wrote:


>>> >> El 26/09/10 21:36
>>>>> >>>> Hi, Benoît
>>>>> >>>>
>>>>> >>>> It would be fine if you could implement a 'tasks system', like in other
>>>>> >>>> IDEs, to keep track of pending tasks or fixes.
>>>>> >>>>
>>>>> >>>> For example, if the text editor finds a comment beginning with
>>>>> >>>>
>>>>> >>>> ' TODO: my stuff
>>>>> >>>> or
>>>>> >>>> ' FIXME: fix whatever
>>>>> >>>>
>>>>> >>>> then a little icon will shows into the line numbers and an additional
>>>>> >>>> tab in the console/breakpoints tabstrip will lists the current
>>>>> >>>> tasks/fixes text, which also should be marked as done/undone.
>>>>> >>>>
>>>>> >>>> This could be made in a way we can inspect globally or per class file.
>>>>> >>>>
>>>>> >>>> Hope this make sense, and not a huge job... :-)
>>>>> >>>>
>>>>> >>>> Anyway, thanks for your efforts.
>>>> >>>
>>>> >>> What other keywords are needed, beside TODO and FIXME?
>>> >>
>>> >> No, nothing more is needed. Both keywords are widely used as an standard
>>> >> for that purpose in almost all code editors.
>>> >>
>>>> >>> And we can decide that to mark something undone, the comment has just to
>>>> >>> be removed.


I know it is in the Benoit "to do" list, but also I know he has little
time. So thanks anyway.

-- 
Jesus Guardon




More information about the User mailing list