VSCode now has an arm64 version, problem is there are still a lot of command-line developer tools that are using x86_64 architecture.

At the moment there doesn't appear to be a plugin or preferences to load the Integrated VSCode Terminal in a specific arch.

# load up the Integrated Terminal in VSCode
echo $TERM_PROGRAM # will say vscode

# check arch
arch # will say arm64 if you have Apple M1
  • Why not just run VSCode in Rosetta? Oct 13 at 3:55
  • will try and add answer @MarcWilson
    – sonjz
    Oct 14 at 14:57
  • @MarcWilson tried it and the Rosetta option wasn't available for VSCode app
    – sonjz
    Oct 14 at 15:42
  • @sonjz You can try downloading the Intel-only VSCode here code.visualstudio.com/#alt-downloads
    – Ezekiel
    Oct 14 at 16:09

I fiddled with trying to add another shell, etc, but found the easiest thing was to update your shell config to look for vscode. Once a zsh session loads and detects you are in the Integrated vscode Terminal, it will launch another shell within the arch

Add this to your ~/.zshrc or whatever shell config you are using:

# simulates iTerm i386 within VSCode Integrated Terminal
if [[ $TERM_PROGRAM == "vscode" ]] && [[ $(arch) == "arm64" ]];
  exec arch -x86_64 $SHELL

# you may notice if you exit the terminal an abrupt 127 error, but shouldn't be an issue.
  • 1
    Could you replace the running terminal with exec ? Hm, would that work cross-architecture? Oct 13 at 3:54
  • hmm just noticed, running in /bin/zsh loop when in integrated, i'll take a look
    – sonjz
    Oct 14 at 14:58
  • exec works great @MarcWilson! also fixed looping bug
    – sonjz
    Oct 14 at 15:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .