Question or issue on macOS:
Sep 27, 2019 The Visual Studio Mac native editor shares code with Visual Studio on Windows The C# editor in VS Mac was rewritten by the Visual Studio team after the Microsoft acquisition. It now has what Microsoft calls a 'fully native UI', raising the interesting question of how much of the old MonoDevelop code, which used cross-platform Gtk#, remains in. Run the sample extension in the Visual Studio Mac instance. This will open another Visual Studio for Mac instance that will show the template in the project template wizard and Visual Studio menu. Project template wizard. In the new instance of Visual Studio 2019 for Mac, click on the New button.
I want to set VS Code to be my default git editor for commands such as rebase. This doesn’t seem to be documented on the VS Code website. I’ve found a SO question about doing it for Windows, which sounds like it has mixed success: How to use Visual Studio Code as Default Editor for Git
Has anyone managed this on OSX?
How to solve this problem?
Solution no. 1:
This is currently not possible with VS Code but planned for the future.
Where Is Tf.cmd In Visual Studio Code For Mac Os X
Update for our VS Code 1.0 release:
This is now possible! All you need to do is to configure Code as the git editor using the newly introduced --wait
option from the command line.
Solution no. 2:
This work for me.
Install “code” from VSCode commander (Shift + Command + P)
Search for:
Shell Command: Install ‘code’ command in ‘PATH’
Install it.
after that… run commands on terminal for config git with new editor:
Solution no. 3:
Install “code” from VSCode commander(Shift + Command + P)
then use these 2 lines in your terminal,
if you want to see local git config,
Solution no. 4:
Under OS X El Capitan (10.11.4) I was able to setup the whole thing:
- Install Visual Code Studio on you OS X (make sure it’s inside Applications folder
/Applications
) - Create a link with name
vscode
that links to your Visual Studio (inside Applications folder)using below command (be sure to use correct paths).
** If ~/bin folder doesn’t exists, just create it:
cd ~ && mkdir bin
If folder ~/bin exists just create a link:
ln -s
/Applications/VisualStudioCode.app/Contents/Resources/app/bin/code
~/bin/vscode
- Restart your terminal/shell and you should be able to open Visual Studio Code by typing
vscode
in terminal window.
vscode
- Visual Studio should open. If not and you have error. Add
~/bin/
to your PATH under OS X. Follows this (How do I add ~/bin to my path?) - Edit global git config file with
~/.gitconfig
and set editor usingcode
name. In my case it looks like this:
[core]
editor = vscode –wait
Node.js
OR type
Visual Studio Code Download
git config –global core.editor “vscode –wait”
- Save file & restart terminal window. That’s it!. Now you should be able enter commits descriptions using Visual Studio Code!