VSCode Cambiar Terminal Predeterminado


Estoy usando Visual Studio Code en mi PC con Windows 10. Quiero cambiar mi terminal predeterminado de Windows PowerShell a Bash en Ubuntu (en Windows).

¿Cómo puedo hacer eso?

Author: abhijeetps, 2017-06-08

4 answers

También puede seleccionar su terminal predeterminado presionando F1 en VS Code y escribiendo/seleccionando Terminal: Seleccione Default Shell.

Selección de Terminales

Selección de Terminales

 70
Author: Levi Fuller,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-26 21:10:09

Simplemente escribo las siguientes palabras clave en el terminal abierto;

  1. powershell
  2. bash
  3. cmd
  4. nodo
  5. python (o python3)

Vea los detalles en la imagen de abajo. (VSCode versión 1.19.1 - windows 10 OS) introduzca la descripción de la imagen aquí

También funciona en VS Code Mac. Lo probé con VSCode (Versión 1.20.1)

 13
Author: AnandShanbhag,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-16 14:30:43

Si desea seleccionar el tipo de consola, puede escribir esto en el archivo "keybinding.json " (este archivo se puede encontrar en la siguiente ruta "Archivo - > Preferencias - > Atajos de teclado") `

//with this you can select what type of console you want
{
    "key": "ctrl+shift+t",
    "command": "shellLauncher.launch"
},

//and this will help you quickly change console
{ 
    "key": "ctrl+shift+j", 
    "command": "workbench.action.terminal.focusNext" 
},
{
    "key": "ctrl+shift+k", 
    "command": "workbench.action.terminal.focusPrevious" 
}`
 2
Author: Jhon Stiven Guevara Velasco,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-03 14:07:40

Archivo > Preferencias>Configuración (Ctrl+,)

En la ventana derecha pegar dentro de la {}:

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe"

(Aquí puede poner cualquier otra configuración personalizada que desee también)

Compruebe esa ruta para asegurarse de que su bash.el archivo exe está allí de lo contrario, averigüe dónde está y apunte a esa ruta en su lugar.

Si cierra la ventana de terminal en VS Code ahora y la reinicia, debería abrirse con bash en lugar de con PowerShell.

 2
Author: A. Larsson,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-19 08:48:39