warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.98k stars 359 forks source link

VSCode / VS Code / Virtual Studio Code Embedding #257

Open clinejj opened 2 years ago

clinejj commented 2 years ago

I largely use the VSCode integrated terminal when developing, due to the easy integration into my workflow and ability to lay out within the VSCode UI.

It'd be great to use Warp, either as the terminal for the integrated terminal prompt (using a custom profile, see https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles) or even as a separate extension.

elviskahoro commented 2 years ago

if I have Warp selected in vscode as my external terminal program, normally I should be able to run the command "Open New External Terminal" and have a new prompt in that program, at the root of the project that I ran the command from. Currently this doesn't work. Focus is switched to Warp but I do not get the prompt in my project folder.

elviskahoro commented 2 years ago

@o1lo01ol1o From #605

Describe the solution you'd like?

I'd like to use warp as a terminal in emacs and vscode

Is your feature request related to a problem? Please describe.

Half my terminal time is spent running cli commands in IDE windows.  I'm aware that I could just switch to a dedicated terminal, but that's a context switch that I nearly never undertake.

Additional context

No response

zanderwar commented 2 years ago

I need this :) I spend all day in my IDE, using the integrated terminal will be just far more efficient for me until Warp is capable of it

NotSoSuper commented 2 years ago

Would love VS Code remote SSH integration with warp, would fully switch over then!

paurakhsharma commented 2 years ago

Only thing preventing me from using Warp throughout my day.

0xad1onchain commented 2 years ago

Please add this feature

ahinkle commented 2 years ago

Has anyone found a hack or workaround for now? Loving Warp but hate having to jump between the two applications. 🙂

zanderwar commented 2 years ago

VS Code and PHPStorm alike only allow shell applications, warp is not a shell application in itself, it wraps itself around one, warp cannot be integrated into these IDE's without sacrificing majority of the features that make Warp a great product, it'll dilute down to just being another Git Bash. Perhaps a plugin is the only way forward here but warp definitely wont be able to integrate into these IDE's by the standard means, like you would with git bash for example.

warpdotdev-devx commented 2 years ago

Chances are this kind of integration wouldn't technically be possible until a WASM version of Warp exists.

bmitc commented 2 years ago

Chances are this kind of integration wouldn't technically be possible until a WASM version of Warp exists.

Is this the main reason WASM is being prioritized over Linux and Windows (in that order)? Is this feature request going into the timeline or being tracked?

I would wager that the amount of overlap between Visual Studio Code (VS Code) users and people who are using or want to use Warp is very high, which includes myself.

mnhattt commented 2 years ago

add this feature, pls 👍

tanikondadhanram commented 2 years ago

I am really looking forward to this feature.

Indicaza commented 2 years ago

if I have Warp selected in vscode as my external terminal program, normally I should be able to run the command "Open New External Terminal" and have a new prompt in that program, at the root of the project that I ran the command from. Currently this doesn't work. Focus is switched to Warp but I do not get the prompt in my project folder.

Same issue for us IntelliJ guys. Or you can choose what terminal executable through IDE but warp is different.

elviskahoro commented 2 years ago

@bmitc It isn't the primary reason, the nice thing about a WASM version is that users across any platform will be able to use Warp to some degree (in the browser). It's also because our business model (see our pricing page) is a freemium model. Free for everyone with compelling features that teams and enterprises would want to pay for. A WASM version is in many ways a prerequisite to some of the ideas the Warp team has have for team and enterprise.

This is my (personal) understanding of the situation, I hope this helps.

vjindal0112 commented 2 years ago

As I understand, the main use case is switching quickly between the terminal and VSCode. The Hotkey global window might get it 90% of the way there. Here are the docs.

Using it would look something like this: https://www.loom.com/share/5e9e80960f7e45e38316f8cae3416352

Steps

  1. Make a new desktop
  2. Fullscreen VSCode in the new desktop
  3. Set up Hotkey window in Warp
  4. Code away

Let me know what you all think!

bmitc commented 2 years ago

Thanks for the information @elviskahoro! That was helpful. Looking forward to when I can use Warp on Windows and/or VS Code! I use it on macOS for work and am liking it.

Nauxscript commented 2 years ago

As I understand, the main use case is switching quickly between the terminal and VSCode. The Hotkey global window might get it 90% of the way there. Here are the docs.

Using it would look something like this: https://www.loom.com/share/5e9e80960f7e45e38316f8cae3416352

Steps

  1. Make a new desktop
  2. Fullscreen VSCode in the new desktop
  3. Set up Hotkey window in Warp
  4. Code away

Let me know what you all think!

its helpful but not enough, for example, I got two or more window of vscode , its the better if I trigger warp global hotkey and activate warp (if warp have not launch will new one) , and then go to the root path of the workspace where I trigger hotkey (maybe I need a vscode hotkey to activate warp and pass the workspace path), but its seem like no way to do like one of those. I find a way to do like this in vscode: shift + command + c can open an external terminal under the current directory, the external terminal should be the default terminal,so in other way, if warp can be set as the mac default terminal, it can work like that. as far as I know, iterm2 can do it.

elviskahoro commented 2 years ago

@Nauxscript the main thing is changing the external terminal setting to Warp.app does this screenshot help

Screen Shot 2022-07-07 at 11 03 55

?

vjindal0112 commented 2 years ago

its helpful but not enough, for example, I got two or more window of vscode , its the better if I trigger warp global hotkey and activate warp (if warp have not launch will new one) , and then go to the root path of the workspace where I trigger hotkey (maybe I need a vscode hotkey to activate warp and pass the workspace path), but its seem like no way to do like one of those. I find a way to do like this in vscode: shift + command + c can open an external terminal under the current directory, the external terminal should be the default terminal,so in other way, if warp can be set as the mac default terminal, it can work like that. as far as I know, iterm2 can do it.

Like @elviskahoro said, we recently launched support for Shift-Cmd-C from VSCode in the latest release! Check out the docs here. Let me know if that's what you meant and if that helps get us closer to a 90% solution.

dohooo commented 2 years ago

its helpful but not enough, for example, I got two or more window of vscode , its the better if I trigger warp global hotkey and activate warp (if warp have not launch will new one) , and then go to the root path of the workspace where I trigger hotkey (maybe I need a vscode hotkey to activate warp and pass the workspace path), but its seem like no way to do like one of those. I find a way to do like this in vscode: shift + command + c can open an external terminal under the current directory, the external terminal should be the default terminal,so in other way, if warp can be set as the mac default terminal, it can work like that. as far as I know, iterm2 can do it.

Like @elviskahoro said, we recently launched support for Shift-Cmd-C from VSCode in the latest release! Check out the docs here. Let me know if that's what you meant and if that helps get us closer to a 90% solution.

Lame solution 😵‍💫, but I'm glad we can finally use it together. 🥳🥳🥳 I love wrap!

Nauxscript commented 2 years ago

its helpful but not enough, for example, I got two or more window of vscode , its the better if I trigger warp global hotkey and activate warp (if warp have not launch will new one) , and then go to the root path of the workspace where I trigger hotkey (maybe I need a vscode hotkey to activate warp and pass the workspace path), but its seem like no way to do like one of those. I find a way to do like this in vscode: shift + command + c can open an external terminal under the current directory, the external terminal should be the default terminal,so in other way, if warp can be set as the mac default terminal, it can work like that. as far as I know, iterm2 can do it.

Like @elviskahoro said, we recently launched support for Shift-Cmd-C from VSCode in the latest release! Check out the docs here. Let me know if that's what you meant and if that helps get us closer to a 90% solution.

yes i have use shift + cmd + c hotkey a few day. in the last version of vscode (1.68.x), if i use this hotkey to open Warp, the new tab of warp would not open on the vscode workspace root path. But now the tab path is correct in vscode version 1.69.0.

there is the setting for someone want to use Warp on vscode(its not really "on vscode" exactly, but use them in easy and comfortable way): add in vscode setting.json

{
...// your setting
"terminal.external.osxExec": "Warp.app",
...// your setting
}
just-jeb commented 2 years ago

@vjindal0112, both solutions (hotkey window and shift+cmd+c) come to solve the same problem but I couldn't make it work together. I.e. when I press shift+cmd+c it opens a new Warp session but in a separate window but when I use the hotkey it opens the pinned window unrelated to the window opened with shift+cmd+c. Also, the hotkey doesn't work if there is no running Warp session.
Any chance we can make it work together? It would be a sufficient replacement for the VSCode integration.

warpdotdev-devx commented 1 year ago

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. (elvis) Will share more info if things change!

--- original message --- On April 11, 2022, 10:08 AM EDT @.*** wrote:

Please add this feature

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- You received this message because you are subscribed to the Google Groups "github" group. To unsubscribe from this group and stop receiving emails from it, send an email to @.*** --- end of original message ---

dannyneira commented 1 year ago

user on #2305 commented:

I mostly use a terminal embedded in my IDE of choice (PyCharm / IntelliJ). This uses a configurable shell and automatically provides the context i.e. Conda environment and working directory. It would be nice to use warp in this context.

wangmir commented 1 year ago

its helpful but not enough, for example, I got two or more window of vscode , its the better if I trigger warp global hotkey and activate warp (if warp have not launch will new one) , and then go to the root path of the workspace where I trigger hotkey (maybe I need a vscode hotkey to activate warp and pass the workspace path), but its seem like no way to do like one of those. I find a way to do like this in vscode: shift + command + c can open an external terminal under the current directory, the external terminal should be the default terminal,so in other way, if warp can be set as the mac default terminal, it can work like that. as far as I know, iterm2 can do it.

Like @elviskahoro said, we recently launched support for Shift-Cmd-C from VSCode in the latest release! Check out the docs here. Let me know if that's what you meant and if that helps get us closer to a 90% solution.

@vjindal0112 Can this be integrated with hot key support too? when I open terminal using cmd+shift+c, then it's opening on separated tab. And when using hot key, it opens on the same tab as i use, but in that case the instance is always same.

dannyneira commented 1 year ago

@wangmir Take a look at the Global hotkey window feature, it should help with your use case. https://docs.warp.dev/features/windows/hotkey-window

DayronDLR commented 1 year ago

when will it be available as an integrated terminal in VS CODE?

flight505 commented 1 year ago

+1 This should be the "most wanted feature"!!! Warp's 10.000 USD reward for good old Billy "The integrated" Wizkiss.

Just imagine the sheer number of Youtube videos that would be made with banging headlines "New AI and terminal in VScode" and so on. Heck, any homeless person with a youtube channel and 30 followers will be putting on Lulumemons and go trawling for likes.. - written by GPT-4.0 (I am not liable)

flight505 commented 1 year ago

🖖They've gone Plaid! Less than 24 hours from the last feature request and devs releases 2023.03.23 (v0.2023.03.21.08.02) - Absolutely amazing, fantastic product by the way - Light years from the competition

By the way, how many Borg does it take to change a light bulb? 💡 All of them, because they are one! 🤖

flight505 commented 1 year ago

Why is it that the same three people have been downvoting this feature request?

Milo123459 commented 1 year ago

We're downvoting it because you're spamming this issue with comments. People are subscribed to know when this is released, not about people saying +1.

omarluq commented 1 year ago

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. (elvis) Will share more info if things change! --- original message --- On April 11, 2022, 10:08 AM EDT @. wrote: Please add this feature — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> -- You received this message because you are subscribed to the Google Groups "github" group. To unsubscribe from this group and stop receiving emails from it, send an email to @.*** --- end of original message ---

That's true in the case of actually embedding Warp as VsCode's (or any other IDE for that matter) integrated terminal but on the other hand, creating an extension with WASM and typescript should address a lot of the blockers no?

On a separate note, I've been using Warp for about 2 years now and I love it! it truly elevates my day-to-day development experience

eliasdefaria commented 1 year ago

Echoing my support for this feature. Would be a huge value add to have it baked into my flow with VSCode. This honestly limits my use cases of warp from daily development down to "hey what was that command to kill port x? Oh let me ask warp AI"

iantimmis commented 1 year ago

support support

lucianthorr commented 1 year ago

I don't know if this is possible but it could be an improved compromise between the two current solutions (Global Hotkey and Cmd+Shift+C) If there was a way to customize a Warp profile for the Cmd+Shift+C solution, similar to how we can with Global Hotkey, then a user can say "Pin to bottom of active screen" and Cmd+Shift+C could give the user a Warp terminal on the same screen as VSCode with the workspace root.

hakobpogh commented 1 year ago

One possible solution would be creating a VS Code extension for Warp. As far as I know, Warp is JavaScript-based, so most of the code could be reused to make the VS Code extension.

GDanielRG commented 1 year ago

I would pay a subscription to warp if this feature gets added

kidbrax commented 11 months ago

I realize this is a very difficult task but just pointing out that I am unable to fully commit to Warp since I do a lot of my work in devcontainers, which means it would have to work in linux as well.

dannyneira commented 9 months ago

Locking to prevent spam, We'll post any updates on this thread regarding VS Code integration/embedding. It'll be possible once Warp is on the Web via WASM (no eta on the release).