serkan haytac
Search... ⌘K
Back to posts
· 1 min read

Setup env variables for VScode integrated terminal.


If you are working on a project that involves multiple aws profiles and vscode, this trick might come handy. Depending on the project you would like to make calls from vscode interated terminal to certail aws accounts. In order to do it you need to setup env var AWS_PROFILE on the current shell session. So in order to that in vscode simply create .vscode/settings.json in your projects root and append or add the following snippet. Depending on the os you might need to slightly use different settings.

{
	"terminal.integrated.env.osx": {
		"AWS_PROFILE":"shaytacycombinator"
	}
}

Screenshot