sh not working in Vscode terminal (Windows) - visual-studio-code

I suddenly found that the sh command does not work in the vscode terminal.
Neither Git Bash or powershell works. But it can work smoothly in the external git bash window.
Can anyone help with this? Thanks a lot!

Related

How can I write a commands in GitBash while npm live-server is working?

I just started working with Git Bash, so I'm trying to do some commands while npm live-server is working, but Git Bash doesn't react at all.
I figured out that I can stop the process with "Ctrl+C" command, but is there a opportunity to do commands without stopping the live-server?
Thanks for your answers!)
Thank you, Clive! I understand the method) Now I can write commands while server is working!

Looking for help on setting up wsl in vscode terminal

If I'm in my terminal and open a file with the code command, vscode will launch and the terminal inside code will show my full zsh setup that I have configured in hyper terminal. But if I open up code through windows, and select wsl as my default shell, it's pretty much useless. Anything I try, like sudo, git, apt, etc will return a command not found message.
So if I want to commit any changes in the terminal inside code then I have to use the git bash shell. Is it possible to get my zsh working without first launching from my terminal emulator so I'm using wsl instead of git bash?
running wslconfig.exe /list in powershell showed me that WSL was set to docker as the default shell, so then running wslconfig.exe /setdefault "Ubuntu" in powershell fixed my problem.

'Exit' command in VS Code Terminal and pipenv

While in the VS Code Terminal, the 'exit' command or 'ctrl + d' combination closes the terminal directly, whereas I just want to deactive pipenv, is there a way to do this?
The following command helped me quit pipenv shell in vscode:
deactivate
I tried both deactivate and exit, but none of them works for me.
Environment and interpreters are easily changed with shift+cmd+P. Please, refer to VS code documentation.
If you use pipenv shell to enter virtualenv, use exit command to quit the virtualenv.
Please do not use deactivate, because it will behaved differently [explained by ButtaKnife]

Wrong qutation mark in VS Code integrated terminal with Git Bash on Windows 10

For example I get error: no type named â?? instead of error: no type named ‘. If I run WSL bash instead of Git Bash in VS Code integrated terminal, then quotation marks are correct. If I run standalone Git Bash there is no problem either.
I have tried different fonts and themes for integrated terminal with no luck. I think it is related to wrong code page, but I do not know how to change it for Git Bash or VS Code. Thanks in advance.

Is there a command for clearing the logcat?

I am tired of clearing it with the button. With a command would be more easy, or automatically. Is there a command to clear it IN ECLIPSE?
I mean, not a command in the CMD but in eclipse, the shortcuts.
Using command line, write the following command:
adb logcat -c
I hope it will do the job :)