title: How to set JAVA environment variable in VS Code
body: <p>I have a spring-boot project and my IDE is VS code. I want to pass an environment variable to my applications. Right now I set it before the Gradle command </p>
  
  <pre><code>export PROJECT_NAME=test
  
  ./gradlew bootrun
  </code></pre>
  
  <p><em>PROJECT_NAME is my env variable and I access this in application.properties</em></p>
  
  <p><strong>what is the recommended approach to set environment variables in VS code for java</strong></p>