[oXygen-user] Problems with XQuery indentation.
Adrian Buza
adrian at sync.ro
Wed Feb 15 09:49:25 CST 2012
Hello,
1. You can set the tab/indent size in Options > Preferences, Editor >
Format.
Note that you will have to disable "Detect indent on open" to change the
"Indent size". Then you can re-enable the "Detect indent on open"
option, if you want to preserve the indent size for existing files. If
you leave this enabled, Oxygen will first try to determine the indent
size from the opened file and only fallback to the specified value in
the "Indent size" option if it could not.
Note that this option affects all editors(XML, XQuery, etc).
Pressing Tab will insert an indent of the specified size(spaces).
2. Currently the XQuery editor does not have auto-indent for brackets(or
for anything else for that matter). The only indent related feature is
the one you have noticed, when pressing ENTER, it will replicate the
indent on the previous line.
We are planning on improving the XQuery formatting/editing support in a
future version of Oxygen. I have added your comments to our issue
tracking tool.
Regards,
Adrian
Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
support at oxygenxml.com
http://www.oxygenxml.com
David Lee wrote:
>
> I'm having two problems with xquery editor indentation that I suspect
> are in some option somewhere but can't find them.
>
>
>
> 1) Tab size and spaces
>
> Can I set the Tab key to use Spaces and specify how many ? e.g. make
> Tab use 2 space characters.
>
>
>
> 2) Matching indentation of {}
>
> When I declare a function the closing } doesn't auto-match the
> indentation of the opening }, and to make it worse when I use Enter it
> does indent ... which makes it harder.
>
>
>
> e.g. Typing
>
>
>
>
>
> declare function local:test()<ENTER>
>
> {<ENTER>
>
> <TAB>foo()<ENTER>
>
> }
>
>
>
> Leaves me with
>
>
>
> declare function local:test()
> {
> foo()
> } ---> Indented here
>
>
>
>
>
> Maybe a minor point but when I see Oxygen matching to the open { why
> wont it match the indentation? Is there a way to get it to ?
>
>
>
> Thanks for any hints
>
>
>
> ----------------------------------------
>
> David A. Lee
>
> dlee at calldei.com <mailto:dlee at calldei.com>
>
> http://www.xmlsh.org
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list