XamlStyler icon indicating copy to clipboard operation
XamlStyler copied to clipboard

Format Selection

Open Tadimsky opened this issue 9 years ago • 3 comments
trafficstars

It would be great if I could use this for selected blocks of XAML instead of the whole file. We have some custom stuff in our XAML and don't want the formatter to look at that. The VS formatter has support for format selection so it would be cool to have that for XamlStyler!

Tadimsky avatar Nov 11 '16 19:11 Tadimsky

We think this would be a great addition, but there are some open questions around technical feasibility.

  • Can we detect right-click on a specific node (e.g., to format element and children)?
  • How do we handle edge cases where there is imperfect selection?
  • Can we fuzzy match text selection?

grochocki avatar Apr 09 '20 06:04 grochocki

This is a great feature request and I can't stress enough how much more viable this product would be if it was possible.

The reason is: Say you are a part of a larger team, and you have not started out with a clean XAML style. When you download this plugin you can start adding new features with a new XAML style, but when merging you would end up with changes of the whole file instead of that tiny bit in you XAML. Your team get's frustrated because it's not possible to see what you have actually added and what you have formatted :(

haavamoa avatar May 08 '20 09:05 haavamoa

Hi, anyone know if this feature is in the roadmap ? I have the exact same use case, a large team that cannot format xaml in one step. it would be a killer feature for us.

antoineloos avatar Mar 24 '22 10:03 antoineloos