Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Newlines for properties in ADT and uncollapsing only comments
Newlines for properties in ADT and uncollapsing only comments [message #682434] Sat, 11 June 2011 04:36 Go to next message
gsingh_2011 is currently offline gsingh_2011Friend
Messages: 2
Registered: June 2011
Junior Member
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?

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.
Re: Newlines for properties in ADT and uncollapsing only comments [message #684462 is a reply to message #682434] Wed, 15 June 2011 15:26 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
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
Previous Topic:Files included in a build configuration wrongly treated as excluded
Next Topic:Eclipse after install won't start.
Goto Forum:
  


Current Time: Sat Apr 27 01:25:26 GMT 2024

Powered by FUDForum. Page generated in 0.06312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top