fooiey
fooiey

Reputation: 1550

Can you get Warp terminal as the integrated terminal in VS Code?

I followed the directions on Warp's documentation, but this only replaces the external terminal (it opens as a separate window). https://www.warp.dev/blog/how-to-open-warp-vscode

I would like Warp to replace vscode's usage of xterm in the integrated terminal, but I can't seem to figure out how to do that. My attempt was to edit the profiles in my settings.json:

"terminal.integrated.profiles.osx": {
        "bash": {
            "path": "bash",
            "args": [
                "-l"
            ],
            "icon": "terminal-bash"
        },
        "zsh": {
            "path": "zsh",
            "args": [
                "-l"
            ]
        },
        "fish": {
            "path": "fish",
            "args": [
                "-l"
            ]
        },
        "tmux": {
            "path": "tmux",
            "icon": "terminal-tmux"
        },
        "pwsh": {
            "path": "pwsh",
            "icon": "terminal-powershell"
        },
        "warp": {
            "path": "/Applications/Warp.app/Contents/MacOS/stable",
            "icon": "/Applications/Warp.app/Contents/Resources/Warp.icns"
        }
    },
    "terminal.integrated.defaultProfile.osx": "warp",

but all this did was open up Warp in a separate window and the existing integrated terminal contained the output logs of Warp.

The Warp documentation doesn't include changing the integrated terminal and neither does the vscode documentation, so I highly suspect this is not feasible, but I was wondering if there was some less obvious workaround that someone might have found.

Upvotes: 53

Views: 30889

Answers (7)

CtrlSMDFK
CtrlSMDFK

Reputation: 103

While this doesn't directly address the question, I stand by the marked answer as Warp is indeed built on command shells.

However, I want to share a relevant finding for Warp users. For those looking to integrate Warp into their workspace more seamlessly, there's a built-in feature described at https://github.com/warpdotdev/Warp/issues/257#issuecomment-1175504092. This feature allows users to bring their Warp instance above all opened windows. Note that this feature is currently available only for macOS and Windows.

I decided to put this here because this question is the first result that appears in my Google search, I hope this is ok with everybody.

Upvotes: 0

WD321
WD321

Reputation: 7

from https://www.warp.dev/blog/how-to-open-warp-vscode

  1. VS Code > Settings > Preferences
  2. Type "terminal" into the search bar
  3. Where it says "Terminal > External: Osx Exec", replace whatever is there with "warp.app"
  4. Now when you press Command + Shift + C, a new session of Warp should pop up.

Upvotes: -1

davidethell
davidethell

Reputation: 12018

I have found a very workable solution. While it doesn't give some of the nice features of the integrated terminal such as the Javascript Debugger Terminal it is worth it for all other cases.

I just turn on the Warp Global Hotkey under Settings -> Features. I set the keybinding to CMD-J to override the VS Code hotkey that opens the integrated terminal. Then I set it to Pin to bottom, Active Screen, width of 100% and height of 30%.

With those settings I can just type CMD-J in VS Code and Warp opens up on the bottom 30% of the screen. The global hotkey mode is a separate process from the main warp app so you can still have Warp open as a separate terminal app while your global hotkey mode has its own tabs for your VS Code processes.

Upvotes: 8

vaporizationator
vaporizationator

Reputation: 463

Replacing the vscode integrated terminal is a feature in the warp team's backlog, but one of the engineers says:

"This is really really difficult eng wise. Just being transparent so people don't get their hopes up that this would come out anytime soon."

https://github.com/warpdotdev/Warp/issues/257#issuecomment-1274198741

Upvotes: 26

Acea Spades
Acea Spades

Reputation: 87

Once Warp starts building to WASM (looks like they're working on Windows, Linux, and WASM support), it might be embeddable into VS Code and/or Theia as a WebView Extension

Upvotes: 6

Nikola Simonov
Nikola Simonov

Reputation: 811

I guess that there's a misunderstanding of the terms 'warp' is a terminal emulator application but VSCode integrates command shells like bash, zsh, etc.

terminal apps in most cases it's GUI apps that allow you to work with a command shell. In this case VSCode's terminal window it's a terminal app. that's why you can't just use 'warp' or any other GUI terminal emulator inside the VSCode environment.

Upvotes: 65

Happy3
Happy3

Reputation: 309

It seems that Warp can't be accepted by vscode as the default integrated terminal.

Value is not accepted. Valid values: null, "bash", "csh", "dash", "ksh", "sh", "tcsh", "zsh", "JavaScript Debug Terminal".

Upvotes: 3

Related Questions