autoclose a tag after /

Are you missing a feature? Request its implementation here.
mariuss
Posts: 21
Joined: Tue Sep 09, 2003 10:37 pm
Location: Vancouver, Canada

autoclose a tag after /

Post by mariuss »

While editing a tag if you are outside an attribute value and if you hit '/' then the tag should be closed. This means that an extra '>' should also be inserted.

Marius
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Marius,

In general when you edit with oxygen the start tag is entered with the ending ">". With the default settings also the end tag is inserted so after a content completion operation on an element containing attributes one gets something like:

<element|></element>

where | stands for the caret placement.

Now hitting / will give:
<element/>

with </element> automatically removed.

If you think there is a frequent usage scenario for adding a > automatically when / is entered let us know.

Best Regards,
George
mariuss
Posts: 21
Joined: Tue Sep 09, 2003 10:37 pm
Location: Vancouver, Canada

Post by mariuss »

Yes, I know about the behavior you are describing and it is quite nice.

The one I am suggesting is more natural and saves one key stroke. Why would you type '>' and then '/' when what you need is '/>'?

I found this auto insert of '>' after '/' in some other editor (IDEA) and found it very useful.

Marius
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Marius,

I added this on our bugzilla.

Best Regards,
George
Post Reply