Is there any way to set environment variables in Visual Studio Code?

前端 未结 8 1179
眼角桃花
眼角桃花 2020-12-04 17:26

Could you please help me, how to setup environment variables in visual studio code?

8条回答
  •  时光说笑
    2020-12-04 18:12

    As it does not answer your question but searching vm arguments I stumbled on this page and there seem to be no other. So if you want to pass vm arguments its like so

    {
      "version": "0.2.0",
      "configurations": [
        {
          "type": "java",
          "name": "ddtBatch",
          "request": "launch",
          "mainClass": "com.something.MyApplication",
          "projectName": "MyProject",
          "args": "Hello",
          "vmArgs": "-Dspring.config.location=./application.properties"
        }
      ]
    }
    

提交回复
热议问题