How can I set VScode as core editor in git /macbookSet Visual Studio Code to be global Git editor on OSXHow do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working treeHow to resolve merge conflicts in GitHow do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?
Journal published a paper, ignoring my objections as a referee
Alternatives to Network Backup
Is the internet in Madagascar faster than in UK?
Why Can't A Name Be Written Literally In Japanese?
The meaning of asynchronous vs synchronous
Are there any to-scale diagrams of the TRAPPIST-1 system?
Why didn't Doc believe Marty was from the future?
Heat output from a 200W electric radiator?
What ways are there to "PEEK" memory sections in (different) BASIC(s)
Looking for a plural noun related to ‘fulcrum’ or ‘pivot’ that denotes multiple things as crucial to success
Is it unusual for a math department not to have a mail/web server?
Why is there not a willingness from the world to step in between Pakistan and India?
Why can't I identify major and minor chords?
What should be done with the carbon when using magic to get oxygen from carbon dioxide?
In Endgame, wouldn't Stark have remembered Hulk busting out of the stairwell?
Fantasy Macro Economics: What would Merfolk trade for?
Notice period 60 days but I need to join in 45 days
Drawing probabilities on a simplex in TikZ
Defending Castle from Zombies
How does attacking during a conversation affect initiative?
Are spot colors limited and why CMYK mix is not treated same as spot color mix?
Are sweatpants frowned upon on flights?
Why does a sticker slowly peel off, but if it is pulled quickly it tears?
Is there a way to tell what frequency I need a PWM to be?
How can I set VScode as core editor in git /macbook
Set Visual Studio Code to be global Git editor on OSXHow do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working treeHow to resolve merge conflicts in GitHow do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I cannot set Visual Studio Code as my core editor for git. When I'm trying to do the git commit I only see the info that there is a problem with editor.
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app
MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy
MacBook-Air-Agata:nowy agataskrzypczyk$ git commit
hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
git visual-studio-code
add a comment |
I cannot set Visual Studio Code as my core editor for git. When I'm trying to do the git commit I only see the info that there is a problem with editor.
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app
MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy
MacBook-Air-Agata:nowy agataskrzypczyk$ git commit
hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
git visual-studio-code
1
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11
add a comment |
I cannot set Visual Studio Code as my core editor for git. When I'm trying to do the git commit I only see the info that there is a problem with editor.
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app
MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy
MacBook-Air-Agata:nowy agataskrzypczyk$ git commit
hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
git visual-studio-code
I cannot set Visual Studio Code as my core editor for git. When I'm trying to do the git commit I only see the info that there is a problem with editor.
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait
MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app
MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy
MacBook-Air-Agata:nowy agataskrzypczyk$ git commit
hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
git visual-studio-code
git visual-studio-code
edited Mar 27 at 23:00
Diogo Rocha
1,9241 gold badge21 silver badges25 bronze badges
1,9241 gold badge21 silver badges25 bronze badges
asked Mar 27 at 21:15
Agata SkrzypczykAgata Skrzypczyk
1
1
1
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11
add a comment |
1
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11
1
1
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11
add a comment |
1 Answer
1
active
oldest
votes
I suggest you to set Visual Studio Code option to be launched from command line. For this follow the instructions in the documentation here.
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell
command' to find the Shell Command: Install 'code' command in PATH
command.
Then try setting core editor with this command:
git config --global core.editor "code --wait"
And then I think you'll not have problems with git commit
.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386572%2fhow-can-i-set-vscode-as-core-editor-in-git-macbook%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I suggest you to set Visual Studio Code option to be launched from command line. For this follow the instructions in the documentation here.
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell
command' to find the Shell Command: Install 'code' command in PATH
command.
Then try setting core editor with this command:
git config --global core.editor "code --wait"
And then I think you'll not have problems with git commit
.
add a comment |
I suggest you to set Visual Studio Code option to be launched from command line. For this follow the instructions in the documentation here.
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell
command' to find the Shell Command: Install 'code' command in PATH
command.
Then try setting core editor with this command:
git config --global core.editor "code --wait"
And then I think you'll not have problems with git commit
.
add a comment |
I suggest you to set Visual Studio Code option to be launched from command line. For this follow the instructions in the documentation here.
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell
command' to find the Shell Command: Install 'code' command in PATH
command.
Then try setting core editor with this command:
git config --global core.editor "code --wait"
And then I think you'll not have problems with git commit
.
I suggest you to set Visual Studio Code option to be launched from command line. For this follow the instructions in the documentation here.
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell
command' to find the Shell Command: Install 'code' command in PATH
command.
Then try setting core editor with this command:
git config --global core.editor "code --wait"
And then I think you'll not have problems with git commit
.
answered Mar 27 at 22:05
Diogo RochaDiogo Rocha
1,9241 gold badge21 silver badges25 bronze badges
1,9241 gold badge21 silver badges25 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386572%2fhow-can-i-set-vscode-as-core-editor-in-git-macbook%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of Set Visual Studio Code to be global Git editor on OSX
– phd
Mar 28 at 0:11
stackoverflow.com/search?q=%5Bgit%5D+VScode+core+editor
– phd
Mar 28 at 0:11