<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike Agnew on Medium]]></title>
        <description><![CDATA[Stories by Mike Agnew on Medium]]></description>
        <link>https://medium.com/@agnewdev?source=rss-c039d5c1c6c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jziUKPujuQCwoF0JW3UwnQ.jpeg</url>
            <title>Stories by Mike Agnew on Medium</title>
            <link>https://medium.com/@agnewdev?source=rss-c039d5c1c6c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:16:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@agnewdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hitting F5 to Run Your Electron App in VS Code]]></title>
            <link>https://medium.com/@agnewdev/hitting-f5-to-run-your-electron-app-in-vs-code-adc3901271be?source=rss-c039d5c1c6c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/adc3901271be</guid>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[electronjs]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mike Agnew]]></dc:creator>
            <pubDate>Sat, 22 Dec 2018 22:34:02 GMT</pubDate>
            <atom:updated>2018-12-22T22:35:32.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/692/0*2TTQldEpxjwy1lhC.png" /><figcaption>Electron JS is a framework for cross-platform apps with an HTML/CSS/JS Front-End</figcaption></figure><p>Like many out there I’m utterly spoiled by the modern iterations of Visual Studio.</p><p>So when I decided to become hip and happening and work on an ElectronJS app, I knew I had to continue the trend and use Visual Studio code. It seems to be everyone’s bread and butter at the moment.</p><p>Unfortunately, it’s not as straight forward to launch your apps. I don’t want to have to type “<em>npm start</em>” every time I want to launch my application. That’s way too much work. <em>(Kind of kidding)</em></p><p>Luckily I found the way .</p><ol><li>Spin up your beautiful copy of Visual Studio Code (<em>also made in Electron by the way</em>) and get your electron code base installed if you haven’t already. <a href="https://www.npmjs.com/package/electron-quick-start">You can use Electron Quick Start to get setup quickly.</a></li></ol><blockquote>I tend to use the built in terminal console to do this because having two windows open is ridiculous. (Unless it’s Chrome and I’m learning how to use a new framework)</blockquote><p>My install currently looks like this for reference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*FGbaPUuShGKoizJmJFrMzA.png" /></figure><p>2. Now in VS Code, go to your debug tab on the left (CTRL + SHIFT + D) and next to the green arrow on the top, select the drop-down and click “Add Configuration”. Select Node.JS as the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*z6GQbjJoqFBPTfqT_0SRUQ.png" /></figure><p>3. This should create and open a new file in a .vscode folder at the root of your workspace called “launch.json”. Here we need to give the debugger some information about our app. We need to fill it out with the following (note in my case “electron-quick-start” is the folder where my app AND my node_modules are located for electron, if that’s not the case change accordingly):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4739dc11747d061c76dbf7c7cb28f8c3/href">https://medium.com/media/4739dc11747d061c76dbf7c7cb28f8c3/href</a></iframe><p>4. And that’s it, you should now be able to hit F5 and your application will run for you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B9RUgi9sYl4RlXBqbYPoEA.png" /></figure><p>Hopefully this helped you out a bit, it’s made life easier for me while I work on my electron development for sure, especially while dealing with other frameworks such as React running on their own server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adc3901271be" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>