XSLT 3.0 Refactoring in Visual Studio Code
DeltaXML's XSLT/XPath extension for Visual Studio Code now features new refactoring capabilities. Extract xsl:function and Extract xsl:template are available via VS Code's Quick Fix (⌘.) feature and the Refactor command.
An available refactoring for a selection is indicated by a light-bulb💡 adjacent to the selection. Clicking on the 💡 will display the available refactorings. The light-bulb is only shown when the code selection is a valid expression or a set of XSLT instructions that would be valid inside the new component.
For 'extract to xsl:function' refactoring, VS Code can do significantly more than other XSLT editors as it endeavours to ensure code behaviour remains the same. There are therefore two modes available (fully documented here):
We're continuously updating and improving the XSLT/XPath features available in Visual Studio Code, so more refactoring options will be available soon. For an overview of this extension please see DeltaXML's XSLT/XPath Extension documentation.