sshvisual-studio-codevscode-remote

How do I configure a different shell for a VS Code SSH Remote?


How do the change the shell used for VS Code's integrated terminal when I connect to an remote ssh workspace?


Solution

  • You can use remote setting to change the shell for each host. To do this, open the remote workspace in VS Code and run the Open Remote settings command:

    The Open Remote Settings commands

    Set terminal.integrated.shell.linux to point to your shell and save the file:

    "terminal.integrated.shell.linux": "/usr/bin/fish"
    

    enter image description here

    The remote settings apply to all workspaces you open on a given host, but must be configured for each host you connect to.