-
- DJanczewski
- Posts: 5
- Joined:
XAML styler settings so it formats XAML files to look like Noesis Studio output
Hey, I'm running into an issue where we are moving from editing Noesis XAML files by hand in Visual Studio code, to edit them in Noesis Studio. What are styling rules embedded in the Noesis Studio app? I would love to make sure that handwritten XAML has the same format as the one edited with Noesis Studio to reduce submit merge noise between designers using Visual Code styler and designers using Studio.
Re: XAML styler settings so it formats XAML files to look like Noesis Studio output
Hi!
Unfortunately, we don't have a good solution for this yet. Noesis Studio currently uses its own XAML formatting rules, and these aren't configurable.
For example, Studio generally puts all attributes on the same line (except for namespace declarations on the root element), which can definitely cause unnecessary diffs when working with different editors.
We've discussed a couple of possible improvements internally: allowing a custom post-processing step for XAML files saved by Studio, or exposing formatting options in the `.studio` project. However, neither of these has been implemented yet.
It would be great if you could open a ticket for this so we can discuss the requirements and possible approaches. As a starting point, we can document the formatting rules Studio currently applies and identify which ones would be useful to make configurable.
Thanks for bringing this up!
Unfortunately, we don't have a good solution for this yet. Noesis Studio currently uses its own XAML formatting rules, and these aren't configurable.
For example, Studio generally puts all attributes on the same line (except for namespace declarations on the root element), which can definitely cause unnecessary diffs when working with different editors.
We've discussed a couple of possible improvements internally: allowing a custom post-processing step for XAML files saved by Studio, or exposing formatting options in the `.studio` project. However, neither of these has been implemented yet.
It would be great if you could open a ticket for this so we can discuss the requirements and possible approaches. As a starting point, we can document the formatting rules Studio currently applies and identify which ones would be useful to make configurable.
Thanks for bringing this up!
-
- DJanczewski
- Posts: 5
- Joined:
Re: XAML styler settings so it formats XAML files to look like Noesis Studio output
Documenting formatting rules for studio would be great first step, as then we could configure xaml styler so it aligns the handwritten files in the same way.
Although the best would be exposing styling rules for Noesis Studio, as I find styler format (new-line sign between more than 2 properties mainly) much more readable.
Thanks for the answer, I'll raise a ticket!
Ticket for missing styling documentation:
https://www.noesisengine.com/bugs/view.php?id=5338
Ticket for exposing styling rules to configuration by Noesis Studio App
https://www.noesisengine.com/bugs/view.php?id=5339
Although the best would be exposing styling rules for Noesis Studio, as I find styler format (new-line sign between more than 2 properties mainly) much more readable.
Thanks for the answer, I'll raise a ticket!
Ticket for missing styling documentation:
https://www.noesisengine.com/bugs/view.php?id=5338
Ticket for exposing styling rules to configuration by Noesis Studio App
https://www.noesisengine.com/bugs/view.php?id=5339
Re: XAML styler settings so it formats XAML files to look like Noesis Studio output
Thank you! Let's continue the discussion in those tickets.
Who is online
Users browsing this forum: No registered users and 3 guests