<?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[load header file with same name as the current c file]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I often edit .c files and then at some point need to open the header file of same name.</p>
<p dir="auto">Is there a macro or short-cut to switch from editing main.c to main.h and back?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17637/load-header-file-with-same-name-as-the-current-c-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 17:27:38 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17637.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2019 09:58:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to load header file with same name as the current c file on Mon, 20 May 2019 12:46:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a><br />
You might want to install the <em>Solution Tools</em> plug-in.  I use it and the <strong>&lt;Ctrl&gt;~</strong> hotkey to cycle among files having the same name and various different file extensions.</p>
<p dir="auto">See here: <a href="http://npp.incrediblejunior.com/" rel="nofollow ugc">http://npp.incrediblejunior.com/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/43621</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43621</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Mon, 20 May 2019 12:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Mon, 20 May 2019 09:41:06 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I know. I understand you reaction.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43616</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43616</guid><dc:creator><![CDATA[Ion Marqvardsen]]></dc:creator><pubDate>Mon, 20 May 2019 09:41:06 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Sun, 19 May 2019 13:49:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a></p>
<p dir="auto">LOL</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43591</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43591</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 19 May 2019 13:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Sun, 19 May 2019 12:42:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alan,</p>
<p dir="auto">For me there is nothing easy about pythonscripts. It is a question of knowing my limitations and balance between how much benefit there is with loading the associated header/source file versus the time to learn about and write the python code. Starting from where I am today, it does not give any meaning. I will have to progress on my own terms.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43585</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43585</guid><dc:creator><![CDATA[Ion Marqvardsen]]></dc:creator><pubDate>Sun, 19 May 2019 12:42:36 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Fri, 17 May 2019 13:21:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a></p>
<blockquote>
<p dir="auto">hoping there would be a solution ready</p>
</blockquote>
<p dir="auto">Hmmmmmm…Pythonscript is just another plugin on the list…</p>
<p dir="auto"><img src="https://i.imgur.com/GRAwUmN.gif" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/43492</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43492</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 May 2019 13:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Fri, 17 May 2019 12:49:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alan,</p>
<p dir="auto">I would need to be “spoon-fed”. And I don’t like that. When I made the request, I was hoping there would be a solution ready.</p>
<p dir="auto">Once again, thanks for your help.</p>
<p dir="auto">I will give the plugins on the list a try. They might be exactly what I was looking for.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43485</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43485</guid><dc:creator><![CDATA[Ion Marqvardsen]]></dc:creator><pubDate>Fri, 17 May 2019 12:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Fri, 17 May 2019 12:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a> said:</p>
<blockquote>
<p dir="auto">if you consider me a “lost cause”</p>
</blockquote>
<p dir="auto">Well…  I’m not 100% sure (yet) but you are starting to sound like someone that wants to be spoon-fed, yes.  I’m not so much into that, but if you show <em>some</em> amount of effort, I and others here are definitely “in your corner” and will help you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43478</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43478</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 May 2019 12:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Fri, 17 May 2019 12:15:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a></p>
<p dir="auto">There are various plugins that have been written to solve your issue. Here is a presumeably uncomplete list (all untested):</p>
<p dir="auto">QuickOpenPlugin<br />
SourceSwitch<br />
Switcher<br />
Open Selection</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43477</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43477</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Fri, 17 May 2019 12:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Fri, 17 May 2019 08:49:13 GMT]]></title><description><![CDATA[<p dir="auto">I am sorry, but I don’t know anything about Pytonscript or running scripts “manually”. That sounds weird to me.</p>
<p dir="auto">I am not a super user of Notepad++, and my “programming skills” (if I can call it that) is limited to C and Matlab.</p>
<p dir="auto">I totally understand, if you consider me a “lost cause”, at this point. Anyway, thanks for trying. Have a nice weekend. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43469</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43469</guid><dc:creator><![CDATA[Ion Marqvardsen]]></dc:creator><pubDate>Fri, 17 May 2019 08:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Thu, 16 May 2019 22:37:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a></p>
<p dir="auto">I can certainly show an example of how to add a script to the right-click context menu.  But the script isn’t embedded there, it’s just “pointed-to” there.  Have you installed the Pythonscript plugin and tried to get the script running manually?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43460</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43460</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 May 2019 22:37:02 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Thu, 16 May 2019 21:42:33 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Alan! You make it sound easy.</p>
<p dir="auto">I know how to make changes to the contextMenu.xml file, to add or delete menu entries. But that is it.</p>
<p dir="auto">Is it possible to add your code to the contextMenu.xml ? Can you show an example?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43459</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43459</guid><dc:creator><![CDATA[Ion Marqvardsen]]></dc:creator><pubDate>Thu, 16 May 2019 21:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Thu, 16 May 2019 12:43:08 GMT]]></title><description><![CDATA[<p dir="auto">I whipped up a quick script for this, for “associated” C/C++/H files.  It would go nicely as a right-click context menu entry. :)</p>
<pre><code>import os
temp_list = notepad.getCurrentFilename().rsplit('.', 1)
if len(temp_list) == 2:
    ext = temp_list[1].lower()
    if ext in [ 'cpp', 'c', 'h' ]:
        all_except_ext = temp_list[0]
        if 'c' in ext:
            assoc_file = all_except_ext + '.h'
        else:
            assoc_file = all_except_ext + '.c'
            if not os.path.exists(assoc_file): assoc_file = all_except_ext + '.cpp'
        if os.path.exists(assoc_file): notepad.open(assoc_file)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/43423</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43423</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 May 2019 12:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to load header file with same name as the current c file on Thu, 16 May 2019 12:19:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ion-marqvardsen" aria-label="Profile: Ion-Marqvardsen">@<bdi>Ion-Marqvardsen</bdi></a></p>
<p dir="auto">I don’t believe so.  But this is something that can easily be scripted if you use or are willing to use the Pythonscript plugin…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/43422</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/43422</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 May 2019 12:19:17 GMT</pubDate></item></channel></rss>