VSCode搭建vue前端开发工程的配置文件-launch.json

说明:launch.json配置文件

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [

    {
      "type": "node",      
      "request": "launch",
      "name": "Launch Program",
      "console": "externalTerminal",
      //"console": "integratedTerminal",
      //"console": "internalConsole",
      "skipFiles": [
        "/**"
      ],
      "program": "${workspaceFolder}/node_modules/webpack-dev-server/bin/webpack-dev-server.js",
      "args": [
        "--inline",
        "--progress",
        "--config",
        "build/webpack.dev.conf.js"
      ]
    }
  ]
}

settings.json 文件(编译时终端不会出现乱码)

{
  "files.encoding": "gbk",
  "code-runner.runInTerminal": true,
  "editor.fontSize": 18,
  //"terminal.integrated.shellArgs.windows": ["/K chcp 65001 >nul"],
  "terminal.integrated.shellArgs.windows": ["/K chcp 65001 >nul"],
  "terminal.integrated.fontFamily": "Lucida Console",
  }

 

你可能感兴趣的:(前端)