the_begging_beginner
the_begging_beginner

Reputation: 179

How do I map the Run Configuration from IntelliJ to VSCode?

I want to have the same run configuration I have on Intellij the same as I do for VS Code. But I am not sure how to go about doing that. I tried the launch.json on VSCode but I am not sure what fields I have to put to make it work.

Anyone with experience with this?

Here is what I am referencing: enter image description here

Essentially when I click the Run Button on the top right of the intellij it runs that particular run configuration picture.

Is there a way for me to do the same on VSCode?

Upvotes: 2

Views: 7135

Answers (1)

JialeDu
JialeDu

Reputation: 9727

  1. If .vscode/launch.json doesn't exist in your workspace, you could click the link "create a launch.json file" and Java Debugger will create a initial launch.json file with some base configuration for your Java application.

    enter image description here

  2. Type a "" in launch.json, VS Code will provide a list of completion suggestions on the supported configs. If you want to add environment variables for your program, you can type "env": { "key": "value"}.

    enter image description here

Upvotes: 1

Related Questions