Hi,
Just started using Coderush on a WPF project a couple of months ago and really like it. However, I lost a capability when editing xaml files and hope you can get it back for me.
For instance, I may need to add another level of LayoutControl to a section. It was pretty simple to add
<dxlc:LayoutControl Orientation=Horizontal>
Of course, the </dxlc:LayoutControl> is automatically added to the end of the line. I delete it and move the cursor to the end of the section and enter </ and select </dxlc:LayoutControl> and it's added to the end of the line. What used to happen is that it would be added as a separate line, with the indent aligned with its matching statement and everything in between would be reformatted with indents adjusted. Now I have to select the section and reformat.
Am I doing this incorrectly or perhaps there is an option I need to change in the Coderush setup, but in any case, can you help me get this functionality back or suggest a work around?
Thank you for your time.
Cheers,
Larry
Hi Larry,
I tried to reproduce this behavior but failed. Here is a screencast of my attempt:
https://www.screencast.com/t/fpQdF0uYvX
CodeRush doesn't replace the auto-formatting feature for XAML, so I suggest you check if it's enabled in your VS settings - Tools\Options\Text Editor\XAML\Formatting\General:
Hi Alex,
Thanks for your quick response. I checked and the options are set exactly as you show them here. I tried turning them off and then on again, but no change.
Any other suggestions?
Cheers,
Larry
Larry,
Thank you for the update.
Can you reproduce this issue in every project (even in a simple project like in my screencast from the previous comment) or it's reproducible only with certain code?
Also, please share your CodeRush(CodeRush\Support\Settings Folder…) and Visual Studio(Tools\Import and Export settings) settings with us so I can try to reproduce the issue in a similar environment.
We are looking forward to hearing from you.
Hi Alex,
This happens with a any project and I used the devex example for WindowService in mvvm to verify. Here's what I've done this morning to try and isolate the issue.
Attached is a copy of my settings file and the simple WindowsService project. In the project, I just tried adding a LayoutControl around the MainMenuControl in ChildView.xaml (Line 14).
Thanks for your support. Hopefully, there is something easy to find in my settings that are causing the issue.
Cheers,
Larry
Hi Larry,
Thank you for sharing your settings. I reproduced the issue. At first glance, it seems that it's caused by the IntelliRush feature. As a temporary workaround, I suggest you disable it. Please refer to the following help topic for more information: https://docs.devexpress.com/CodeRushForRoslyn/115841/coding-assistance/auto-completion/intellirush.
Another way is to erase the '>' character and type it to invoke formatting:
https://www.screencast.com/t/2Vl56IwXF5W
Hi Alex,
Thank you for the work around. Will you update me if a fix will be forthcoming? Also, I noticed this is private and if you think it is of interest to other users, you have my permission to make it public.
Cheers,
Larry
Larry,
We will update this ticket once the issue is fixed. Thank you for the permission to mark the ticket as 'Public'.