Skip to content
Shirish Kadam
← All writing

Configuring IntelliJ IDEA for Electron

1 min read Edit page

In the last blog post on Setting Up Electron Framework for Desktop Apps, we talked about Electron framework and its installation, we also tried a “Hello World” example in Electron. This post will a short one and will help you to configure Electron in an IDE - IntelliJ IDEA 2016.

Let’s get started with our configuration, first thing is making sure you are using JavaScript ECMAScript 6. Go to File > Settings > Languages and Frameworks > JavaScript and select ECMAScript 6. Now we need to install the JavaScript library for Electron called github-electron-DefinitelyTyped. This can be done by heading over to,

File > Settings > Languages and Frameworks > JavaScript > Libraries > (Select) Download.

After all the libraries are loaded search for **github-electron-DefinitelyTyped ** and download and install it. After that check / select that library.

settings_007

To enable “Coding Assistance” go to File > Settings > Languages and Frameworks > Node.js and NPM > Enable the Coding Assistance for Node.js Core Library.

Run/Debug Configuration:

Select a Node.js run configuration. In the Node interpreter, give the path to the Electron executable. Also, in JavaScript file field give the path your main JavaScript file in the project and save this configuration and Run.

run-debug-configurations_008

Here’s a great Material Design desktop app I made with Electron Framework. In case you are wondering, I used Material Design Lite library for Material Design components.

[Gallery]

Fork this app on Github:

5hirish/adam_app Electron based Desktop App using Material Design HTMLStar on GitHub

Read my other post on Setting Up Electron Framework for Desktop Apps. Download the best IDE in town here at JetBrains IntelliJ IDEA.

Edit page

Comments

Loading the thread…

Your email is never shown and never added to any list — it is only used to let you know if someone replies.

Older comments (3)
A
akshay12345vin
For This Configuration you always have to keep your main JavaScript filename main.js
J
J Dev
I see no way to search for a Javascript library….
J
Jan Girke
First I got stuck on the "File > Settings > Languages and Frameworks > JavaScript > Libraries" because it only shows up if you start a project. Now I am stuck finding "github-electron-DefinitelyTyped" in IntelliJ IDEA 2019.1.3 x64 Ultimate trial