Page 1 of 1

autoclose a tag after /

Posted: Thu Oct 14, 2004 12:44 am
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

Posted: Mon Oct 18, 2004 4:35 pm
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

Posted: Mon Oct 18, 2004 6:50 pm
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

Posted: Mon Oct 18, 2004 7:13 pm
by george
Hi Marius,

I added this on our bugzilla.

Best Regards,
George