相关疑难解决方法(0)

可以将Visual Studio代码配置为启动电子

由于Visual Studio Code是使用Electron创建的,我猜测launch.json可能配置为使用Electron正确启动应用程序.但我还没想出怎么做.

此外,由于Electron基于io.js,它本身基于Node.js,我想也许......它可以完成,但还没有找到魔法.

沿着这些方向试了一下...来自launch.json的片段:

"configurations": [
    {
        // Name of configuration; appears in the launch configuration drop down menu.
        "name": "Launch Electron",
        // Type of configuration. Possible values: "node", "mono".
        "type": "node",
        // Workspace relative or absolute path to the program.
        "program": "Y:\\dev\\electron\\electron.exe",
        // Automatically stop program after launch.
        "stopOnEntry": false,
        // Command line arguments passed to the program.
        "args": ["CrawlSpace_Electron\\"],
        // Workspace relative or absolute path to the working directory of the program being debugged. Default is the …
Run Code Online (Sandbox Code Playgroud)

electron visual-studio-code

10
推荐指数
2
解决办法
9524
查看次数

标签 统计

electron ×1

visual-studio-code ×1