xmlelement formating weired
i write some xml initialize code below:
XElement el =
new XElement(ns + "Process",
new XAttribute(XNamespace.Xmlns + "xsd", "http://www.w3.org/2001/XMLSchema"),
new XAttribute(XNamespace.Xmlns + "xsi", "http://www.w3.org/2001/XMLSchema-instance"),
new XAttribute(XNamespace.Xmlns + "ddl2", "http://schemas.microsoft.com/analysisservices/2003/engine/2"),
new XAttribute(XNamespace.Xmlns + "ddl2_2", "http://schemas.microsoft.com/analysisservices/2003/engine/2/2"),
new XAttribute(XNamespace.Xmlns + "ddl100_100", "http://schemas.microsoft.com/analysisservices/2008/engine/100/100"),
new XElement(ns + "Object",
new XElement(ns + "DatabaseID", "sldfj"),
new XElement(ns + "DimensionID", "sldkfjlsf")
)
);
as you can see, every right brace is position just below the corresponding xelement, which is nice. but after i do some cleanup,
it changes:
XElement el =
new XElement(ns + "Process",
new XAttribute(XNamespace.Xmlns + "xsd", "http://www.w3.org/2001/XMLSchema"),
new XAttribute(XNamespace.Xmlns + "xsi", "http://www.w3.org/2001/XMLSchema-instance"),
new XAttribute(XNamespace.Xmlns + "ddl2", "http://schemas.microsoft.com/analysisservices/2003/engine/2"),
new XAttribute(XNamespace.Xmlns + "ddl2_2", "http://schemas.microsoft.com/analysisservices/2003/engine/2/2"),
new XAttribute(XNamespace.Xmlns + "ddl100_100", "http://schemas.microsoft.com/analysisservices/2008/engine/100/100"),
new XElement(ns + "Object",
new XElement(ns + "DatabaseID", "sldfj"),
new XElement(ns + "DimensionID", "sldkfjlsf")
)
);
every right brace is align to the 'new' keyword, which is ugly.
i dont want to disable the formating when i do cleanup, so is there any option i can disable this weired xml formatting???
help!
Please sign in to leave a comment.
Hello Kevin,
There's no option to control the placement of closing parenthesis yet. You're
welcome to put a feature request through http://youtrack.jetbrains.net/issues/RSRP.
Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"