Configure VSCode for M1 Macs to launch integrated terminal in Rosetta 2 (x86-64 mode)
Looking for a way to quickly open a terminal under Rosetta 2 on your M1 Mac? If you’re getting tired of repeatedly entering arch -x86_64 /bin/zsh every time you need to run Rosetta 2 in the terminal, try this in VSCode:
- Open VSCode’s
settings.jsonby pressingCommand + Shift + P, and then enteringPreferences: Open Settings (JSON) - Append the following to
"terminal.integrated.profiles.osx":"terminal.integrated.profiles.osx": { "zsh (x86-64)": { "path": "arch", "args": ["-x86_64", "/bin/zsh"] }
You can also, of course, replace zsh with your preferred shell.