Refactor only a portion of a file?

<oXygen/> general issues.
Posts: 1
Joined: Tue Apr 09, 2019 9:14 pm

Refactor only a portion of a file?

Post by LaRae_Chasteen » Tue Apr 09, 2019 9:17 pm

Good day,
Is there any way to perform one of the built-in refactoring operations, but only on selected text within the open file?
Thank you,
LaRae Chasteen

Posts: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: Refactor only a portion of a file?

Post by Radu » Wed Apr 10, 2019 8:11 am

Dear LaRae,

Unfortunately the XML refactor can only be applied on entire documents, not on selected content. I added an internal issue with your feedback and if we ever implement this I will update the forum thread. In the meantime you will probably need to use the "Find/Replace" dialog which works on a selection. Or extract the selected content to a separate file and apply the refactoring operation there (but the selected content needs to be wellformed XML).

Radu Coravu
<oXygen/> XML Editor

Post Reply