bash_profile), pass in the -l argument (with double quotes): // Linux You can pass arguments to the shell when it is launched.įor example, to enable running bash as a login shell (which runs. If you need to run a shell command with elevated (administrator) or different permissions, you can use platform utilities such as runas.exe within a terminal. Tip: The integrated terminal shell is running with the permissions of VS Code. Note: To be used as an integrated terminal, the shell executable must be a console application so that stdin/stdout/stderr can be redirected.
"": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe" 64-bit PowerShell if available, otherwise 32-bit Below are a list of common shell executables and their default locations: // 64-bit cmd if available, otherwise 32-bit WindowsĬorrectly configuring your shell on Windows is a matter of locating the right executable and updating the setting. Arguments can be passed to the terminal shell on Linux and macOS using the .* settings. These can be overridden manually by setting .* in settings.
The shell used defaults to $SHELL on Linux and macOS, PowerShell on Windows 10 and cmd.exe on earlier versions of Windows. Tip: If you use multiple terminals extensively, you can add key bindings for the focusNext, focusPrevious and kill commands outlined in the Key Bindings section to allow navigation between them using only the keyboard. Remove terminal instances by pressing the trash can button. This creates another entry in the dropdown list that can be used to switch between them.
Terminal instances can be added by hitting the plus icon on the top-right of the TERMINAL panel or by triggering the kb() command. You can create multiple terminals open to different locations and easily navigate between them. Note: You can still open an external shell with the Explorer Open in Command Prompt command ( Open in Terminal on Mac or Linux) if you prefer to work outside VS Code.