Black Lives Matter. Support the Equal Justice Initiative and read our statement here.

Electron Documentation

1. Open an Electron project in VSCode.

$ git clone
$ code electron-quick-start

2. Add a file .vscode/launch.json with the following configuration:

  "version": "0.2.0",
  "configurations": [
      "name": "Debug Main Process",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
      "windows": {
        "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
      "args" : ["."],
      "outputCapture": "std"

3. Debugging

Set some breakpoints in main.js, and start debugging in the Debug View. You should be able to hit the breakpoints.

Here is a pre-configured project that you can download and directly debug in VSCode:

Keyboard Shortcuts

Key Action
/ Focus the search bar
Esc Focus the search bar and cleans it
Select the next search result
Select the previous search result
Enter Open the selected search result
cmdEnter Ctrl+Enter Open the selected search result in a new tab