History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRVY-954
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Krasilschikov
Reporter: Guillaume Laforge
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Groovy

Joining lines should add some space

Created: 24 Jan 08 19:17   Updated: 13 Nov 08 17:10
Component/s: Groovy editor support
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Again a matter of style, but I tend to put some spaces around my curly brackets.

Let's say I have the following toString() method:

String toString() {
        name
    }

I put my curstor on the first line, and I'm joining all the lines so that everything is on the same line as my method is so short, I end up with:

String toString() {name}

But my preference would be to have a space before and after the 'name' field like so:

String toString() { name }

I think it makes the code more readable

Perhaps it's just a question of taste, or of some syntax formatting preferences?



 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 24 Jan 08 20:42
Join lines feature is not implemented yet, what you see is textual joining.