All you need to do is to add args to the integrated terminal within 'User Settings' window.
Follow this steps below to do that:
- List item
- Go to 'User Settings'
- Search for setting named - "terminal.integrated.shellArgs.windows"
- Edit this setting by copying it to the right side.
- Add the following arg value = "/k nodevars.bat", e.g.
"terminal.integrated.shellArgs.windows": ["/k nodevars.bat"],
- Make sure that the setting named "terminal.integrated.shell.windows" is set to the value - "C:\Windows\system32\cmd.exe". If not then do that.
- Open new Terminal.
Good luck