Tab Indent and Detect indent on open

Having trouble installing Oxygen? Got a bug to report? Post it all here.
rdeltour
Posts: 3
Joined: Wed Mar 10, 2010 1:15 pm

Tab Indent and Detect indent on open

Post by rdeltour »

Hi,

I'd like to use the "Detect indent on open" formatting option to keep an existing indenting option, and at the same I'd like time that the new files I create to be indented with tabs instead of spaces.

It seems that whenever I create a new file (e.g. with the Eclipse plugin New... > oXygen > XML File and other items) the file uses space-indent by default. I can only force tab-indent if I disable the "detect indent" option.

Is there any way to change the default indent of new files ?

Thanks!
Romain.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Tab Indent and Detect indent on open

Post by adrian »

Hello,

Thank you for reporting this.

This is indeed a bug in the Oxygen Eclipse plugin. The standalone version of Oxygen does work as expected(new files are indented with tabs).

I'm adding this to our bug tracking tool and we will resolve it in a future version of Oxygen.

Meanwhile, one workaround is to create a file that is indented with tabs, something simple that has at least one indent like:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root>
<child></child>
</root>
and save it into the templates folder of the oxygen plugin, either:
- eclipse\dropins\com.oxygenxml.editor_11.1.0.*\plugins\com.oxygenxml.editor_11.1.0.*\templates or
- eclipse\plugins\com.oxygenxml.editor_11.1.0.v2010022216\templates.

When you need to create a new XML file indented with tabs you can choose "New From Templates" in the Eclipse "New" wizard and select the file from the Oxygen template list.

Do not hesitate to contact us if you require further information.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply