"terminal.integrated.shell.windows": "C: Windowssysnativecmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C: WindowssysnativeWindowsPowerShellv1.0powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C: Program FilesGitbinbash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C: Windowssysnativebash.exe"
Note : To be used as an integrated terminal, the executable shell must be a console application so stdin / stdout / stderr can be redirected.
Tip : Shell integrated terminal is running with the rights of SQL Operations Studio (preview). If you need to run shell commands with advanced admin rights or different permissions, you can use platform utilities like runas.exe in a terminal.
You can pass arguments to the shell when it is started.
For example, to allow bash to run as a login shell (run .bash_profile), switch in the -l argument (with quotation marks):
// Linux
"terminal.integrated.shellArgs.linux": ["-l"]
You can customize the font and line height for the integrated terminal with the following settings:
terminal.integrated.fontFamily
terminal.integrated.fontSize
terminal.integrated.lineHeight
View command : Toggle Integrated Terminal is linked with Ctrl + ` to quickly switch the terminal control panel built-in and out of sight.
Here are the shortcuts for quick navigation in the integrated terminal:
Command key combination Ctrl + `Integrated terminal display Ctrl + Shift +` Create new terminal Ctrl + Up Scroll up Ctrl + Down Scroll down Ctrl + PageUp Scroll page Ctrl + PageDown Scroll down page Ctrl + Home Scroll to the top of the page Ctrl + End Scroll to the bottom of the page Ctrl + K Delete the terminalOther terminal commands are available and can be assigned with your favorite shortcuts, including:
To use the runSelectedText command , select the text in an editor and run the Terminal command : Run Selected Text in Active Terminal through the Command Palette (Ctrl + Shift + P) . Terminal will run the selected text:
If no text is selected in the active editor, the line that the cursor is set to is run in the terminal.
Assigning keys to copy and paste conform to platform standards:
The integrated terminal has a basic search function that can be activated with Ctrl + F.
If you want Ctrl + F to go to the shell, instead of launching the search utility on Linux and Windows, you need to delete the key link as follows:
{"key": "ctrl + f", "command": "-workbench.action.terminal.focusFindWidget",
"when": "terminalFocus"},
Integrated terminal sessions can be renamed using the Terminal command : Rename (workbench.action.terminal.rename) . The new name is displayed in the terminal selection menu.
While the focus is on the integrated terminal, many of the key keys assigned will not work, because key combinations are transmitted and are suppressed by the terminal itself. Terminal.integrated.commandsToSkipShell setting can be used to do this. It contains an array of command names with assigned keys, bypassing shell processing and instead is handled by the system binding SQL Operations Studio (preview) keys. By default, this includes all the keys assigned in the terminal, adding some commonly used key options.
See more: