This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in eclipse

 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code lines are expand and i was wondering if there was a way to collapse them all and make it that way everytime.
http://www.youtube.com/watch?v=Ki-j16GZ4hY heres the link to a video i posted that shows the exact problem.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex, welcome to Java Ranch!

I looked at your video twice and still don't understand what you issue is. In the video you said "I did this manually" but you never explained what "this" is! And the video seems to have nothing to do with the text you posted here. So here are two guesses:

a) Based on the text you posted here you want to auto-fold all lines. Try right-clicking the + or - in the left column next to the text and select fold all

b) Making a guess from the video, try going to Window | Preferences | XML | XML Files | Editor and play with the options there, such as "Split multiple attributes..."

By the way, this is an Eclipse question so moving the post to that forum.
 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
heres the problem.

this is how the text showed before i changed it.

<Button android:id="@+id/widget31" android:typeface="sans" android:text="Enter The Land Of COBUS" android:layout_height="wrap_content"
android:textStyle="bold" android:layout_alignParentBottom="true" android:layout_width="match_parent"></Button>


it was really expanded and ive watched tutorials and there text just lines up automatically. i was wondering if there was a way to just make it look like this everytime.


<Button
android:id="@+id/widget31"
android:typeface="sans"
android:text="Enter The Land Of COBUS"
android:layout_height="wrap_content"
android:textStyle="bold"
android:layout_alignParentBottom="true"
android:layout_width="match_parent">
</Button>
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just type it in that way?
 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I could and it makes it seem like I'm lazy but I've seen many videos and actual upclose software where it automatically put the text that way.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse does auto-indent so typing a line and hitting the Enter key and then continuing to type will result in what you are seeing in those videos.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic