Run JavaScript in Visual Studio Code

后端 未结 18 1088
北恋
北恋 2020-11-30 17:04

Is there a way to execute JavaScript and display the results using Visual Studio Code?

For example, a script file containing:

consol         


        
18条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 17:43

    I used Node Exec, no config needed, builds the file that you are currently ending or what ever has been selected and outputs inside of VSCode.

    https://marketplace.visualstudio.com/items?itemName=miramac.vscode-exec-node

    With a bit of config you can add Babel to do some on the fly transpiling too.

提交回复
热议问题