![]() I hope this quick and easy article is helpful to y’all. ![]() I’ve known a lot of first time people to Git and VS Code to install Git before VS Code and not select the option to have it be the default editor. This makes it an excellent choice to manage your code commits while you develop. –new-window will ensure that a new window is opened every time Visual Studio Code has integrated Git support for the most common commands. ![]() –wait – make sure git bash will wait for code editor will be closed git config -global core.editor 'code -wait' Or, alternatively if you don't like typing too much then use. $ git config –global core.editor “code –wait –new-window” Default VS Code As The Git Editor (Globally) Type the following in the command prompt / bash shell. In your Git Bash type the following command: I thought I would take a quick moment to show everyone how fast and easy you can change the default global editor in the Git Bash console.įirst we must make sure VS Code is in the Path.Īs you can see the VS Code path is missing so click newĪdd C:\Program Files\Microsoft VS Code\binĮasy way to confirm it worked is just type $ code into your Git Bash and t should open VS Code Sometimes, when deploying Git you may forget to select Visual Studio Code as your default editor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |