|
Re: Newlines for properties in ADT and uncollapsing only comments [message #684462 is a reply to message #682434] |
Wed, 15 June 2011 15:26 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
On 6/11/11 12:36 AM, forums-noreply@eclipse.org wrote:
> I have two questions about eclipse. First of all, when I have code like
> this,
>
> function(){
> //code
> }
> //comment
>
> and I collapse the function, the comment collapses with it. Is there
> anyway to stop that from happening?
I don't think so, but it might be considered a bug. Try asking on the
JDT forum group, or entering a bug against the JDT UI component.
>
> My second question is when I'm using android development tools in
> eclipse, sometimes I click an option in the graphical interface I want
> the property to be added to the xml file in a newline. This is how it
> would look if I added the layout_width property:
> <TextView android:id="@+id/textview" android:layout_width="fill_parent"
> />
>
> And here's how I want it to look:
> <TextView
> android:id="@+id/textview"
> android:layout_width="fill_parent"
> />
>
> I use both the graphical interface and the xml code so it is much easier
> to read in the second format, but eclipse (or maybe its an ADT
> property?) adds the property on the same line.
That's a question for the ADT mailing list; I know there's a preference
to enable formatting the XML that ADT generates, but anything more than
that would probably be an enhancement request for the ADT team (not
Eclipse).
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.06312 seconds