aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes problem in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "problem in eclipse" Watch "problem in eclipse" New topic
Author

problem in eclipse

Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
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

Joined: May 14, 2008
Posts: 5837
    
    7

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.

JBoss In Action
Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
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

Joined: May 14, 2008
Posts: 5837
    
    7

Why not just type it in that way?
Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
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

Joined: May 14, 2008
Posts: 5837
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in eclipse