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;








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$









share|improve this question





















  • 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

















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$









share|improve this question





















  • 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













0












0








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$









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












1 Answer
1






active

oldest

votes


















2















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.






share|improve this answer
























    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
    );



    );













    draft saved

    draft discarded


















    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









    2















    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.






    share|improve this answer





























      2















      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.






      share|improve this answer



























        2














        2










        2









        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        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





















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript