Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 57509

Summary: Ant auto-indent enhancement
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2004-04-05 17:08:20 EDT
The following is something that I do often. It would be nice if the editor 
could help me.

* type "<tar"
* content assist for "target" and select

The editor then shows "<target name="|"></target>", with the cursor positioned 
as shown by "|".

* enter a name like "stuff"
* forward the cursor to be between ">|<"
* press enter, the editor now looks like:

<target name="stuff">
|</target>

Would be better to look like:

<target name="stuff">
    |
</target>

I have to manually enter a blank line and tab in. Should this be handled by 
auto-indent, or should there be a template?
Comment 1 John-Mason P. Shackelford CLA 2004-04-05 17:16:10 EDT
I believe this is a good use case for bug 55356 of which this is probably a 
duplicate.
Comment 2 Darin Swanson CLA 2004-04-07 13:06:37 EDT
I have added a target template.
Comment 3 Darin Swanson CLA 2004-05-22 12:16:56 EDT
If only I could get formatting to work on insert for templates...

*** This bug has been marked as a duplicate of 55356 ***