<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Any plugins to extract selected text into a new file (for refactoring)?]]></title><description><![CDATA[<p dir="auto">I’m refactoring a large codebase and it would be helpful to be able to select a section of text, and then with a keypress, cut the text out, open a new file and paste the text into it.</p>
<p dir="auto">Does such a thing exist?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25262/any-plugins-to-extract-selected-text-into-a-new-file-for-refactoring</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 23:09:02 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25262.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Dec 2023 23:22:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Any plugins to extract selected text into a new file (for refactoring)? on Tue, 19 Dec 2023 18:04:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pbarney" aria-label="Profile: pbarney">@<bdi>pbarney</bdi></a>, if the intent is refactoring then I don’t think you want to cut snippets out to put them in separate files as you are then creating a large problem of how to safely merge the refactored code back into the original source files.</p>
<p dir="auto">Thus, it’s usually better to to refactor in place.</p>
<p dir="auto">For large refactor projects I tend to use scripting languages to process the files rather than Notepad++. The choice of scripting languages does not matter as long as they are ones you are comfortable with.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91344</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91344</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 19 Dec 2023 18:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to Any plugins to extract selected text into a new file (for refactoring)? on Mon, 18 Dec 2023 23:37:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pbarney" aria-label="Profile: pbarney">@<bdi>pbarney</bdi></a></p>
<p dir="auto">Well the obvious comes to mind first. Just create a <strong>macro</strong> of the key presses to cut, open a new file and paste.</p>
<p dir="auto">It does sound like you might have more to the story though so you would need to elaborate if this doesn’t solve your need.</p>
<p dir="auto">Terry</p>
<p dir="auto">PS I should add, that once the macro is created you can assign a shortcut key to activate it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91319</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91319</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 18 Dec 2023 23:37:24 GMT</pubDate></item></channel></rss>