Open Visual Studio Code debugger in Git Bash by default - visual-studio-code

Is there a way to open visual studio code debugger in Git Bash by default??
Currently it is opening the debugger in Powershell

Related

Terminal doesn't work in Visual Studio Code

When I open my visual studio code my terminal is blank, neither ubuntu, nor command prompt, nor powershell, nor JavaScript debugger work.
I tried to change the path by which vs code calls my ubuntu but it didn't work.

Visual Studio Terminal Configuration Problem

I've been trying hard to configure Git bash for the visual studio terminal, but my visual studio did not detect the git bash files even after I put it in PATH. I've followed many tutorials but still, it seems not to be working.Here I'll show some of the terminal settings.json and the problems I'm facing Visual Studio Settings.json

Visual Studio Code cannot fin Git-bash

I want to add git-bash to Visual Studio Code.
In the normal Terminal I can type where.exe git and git --version.
It shows me the right output.
But when I try to open a default shell in visual studio code it can not find the git terminal.
So I have added some additional variables to the path.
The git.exe and the cmd\git.exe are there.
Additionally, I tried to add the paths to the .json file in Visual Studio Code.
Nothing worked.
My last try was to add the mintyy.exe to the .json file.
This gave me the code down below as output.
In an external mintty terminal:
rev-parse: Exit 126.
Failed to run 'rev-parse': No such file or directory
Here I had no choice to open the mintty terminal, it has just opened.
What can I try next?
Open your user setting, and edit "git.path"
It should reference the full path of git.exe.
For instance, I have:
"git.path": "c:\\Public\\gits\\latest\\bin\\git.exe"
Then, in the default terminal, I get:
Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits réservés.
PS C:\Users\VonC\> git --version
git version 2.23.0.windows.1
PS C:\Users\VonC\>

Visual Studio command line shortcut doesn't persist after closing the editor

I've installed the Visual Studio code command line shortcut using their package manager:
However, I find that if I close Visual Studio, the Fish shell doesn't recognize the code command anymore:
In my /usr/local/bin (which is in my path), I find that code is a link to the following:
/u/l/bin> ls -lh *code*
lrwxr-xr-x 1 kurtpeek admin 167B Aug 13 15:10 code -> /private/var/folders/0p/jfjngh2x19dfyg2dpxnw7f2h0000gn/T/AppTranslocation/CAEB3997-9AD6-458F-8778-37C23B7B4F53/d/Visual Studio Code.app/Contents/Resources/app/bin/code
It seems that the actual executable is no longer available at this location? In any case, how can I get the code command-line shortcut to keep working even after I close Visual Studio Code?
It turns out I had forgotten to drag Visual Studio Code.app into the Applications folder as mentioned in a comment in "code ." Not working in Command Line for Visual Code Studio on OSX/Mac.

How can I fix the "segmentation fault" error in Visual Studio Code's terminal?

On Windows 10, I have Visual Studio Code installed.
When I open the terminal (Git Bash) and type less-watch-compiler, I get the error:
Segmentation fault
But if I go to the Git Bash terminal itself (outside Visual Studio Code) and type less-watch-compiler, the command works.
How can I fix this problem?
I reinstalled Git for Windows, but it didn't help.
I have the latest version of Visual Studio Code (1.36.1)
When I use the "cmd" editor within Visual Studio Code, it works fine as well.
Not sure if it's the same problem but I was also getting segmentation fault errors running VSCode with WSL.
What fixed it for me was:
rm -rf ~/.vscode-server
The next time I tried the command, VScode downloaded the necessary files and everything worked again.