[Gambas-user] Making code pretty

Stephen A. Bungay sbungay at ...981...
Fri Aug 5 20:05:11 CEST 2011


I suppose, but then the removal (or addition) of white space should probably not generate a commit change as white space is not critical to GAMBAS logic. Each to their own, but the 'prettying' should be configurable.

Ron <ron at ...1740...> wrote:

>It's not only eye candy, it's also a practical thing.
>If you have a bigger public project under svn, you don't want that the
>removal of one isolated space character on a empty line somewhere generates
>a commit change.
>
>So I  remove them all in my projects while writing code.
>
>Regards,
>Ron_2nd.
>
>'Pretty' is in the eye of the beholder. I write my code so it is easy to
>read and easy see the structure of the code, spaces and empty lines are
>therefore used extensively. Since the compiled code is not affected by them
>what's the problem? Ron <ron at ...1740...> <ron at ...1740...> 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.
>Regards, Ron_2nd. 2011/8/4 Fabien Bodard
><gambas.fr at ...626...><gambas.fr at ...626...>:
>
>
> 2011/8/4 Kevin Fishburne
><kevinfishburne at ...1887...><kevinfishburne at ...1887...>:
>
>
> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote:
>
>  On 8/4/2011 8:22 AM, Benoît Minisini wrote:
>
>  Hi there, I'd like to add some options to the "making code pretty" feature
>in the IDE.
>
>
>I think that an option to sort procedures by name would be helpful.
>
>
>That would be awesome. Also removing spaces on otherwise empty lines and
>removing spaces at the end of lines.
>
>
>empty lines can be usefull to keep a readable code
>
> -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail:
>sales at ...1887... phone: (770) 853-6271
>------------------------------------------------------------------------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
>must-attend event for mobile developers. Connect with experts. Get tools for
>creating Super Apps. See the latest technologies. Sessions, hands-on labs,
>demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>-- Fabien Bodard
>------------------------------------------------------------------------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
>must-attend event for mobile developers. Connect with experts. Get tools for
>creating Super Apps. See the latest technologies. Sessions, hands-on labs,
>demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>------------------------------------------------------------------------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
>must-attend event for mobile developers. Connect with experts. Get tools for
>creating Super Apps. See the latest technologies. Sessions, hands-on labs,
>demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>------------------------------------------------------------------------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
>must-attend event for mobile developers. Connect with experts. Get tools for
>creating Super Apps. See the latest technologies. Sessions, hands-on labs,
>demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>------------------------------------------------------------------------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>The must-attend event for mobile developers. Connect with experts. 
>Get tools for creating Super Apps. See the latest technologies.
>Sessions, hands-on labs, demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user


More information about the User mailing list