Associating text editors with Git - GitHub Docs
Skip to main content

Associating text editors with Git

Use a text editor to open and edit your files with Git.

Platform navigation

Using Visual Studio Code as your editor

  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    
  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    
  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    

Using Sublime Text as your editor

  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "subl -n -w"
    
  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
    
  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "subl -n -w"
    

Using Notepad++ as your editor

  1. Install Notepad++ from https://notepad-plus-plus.org/. For more information, see Getting started in the Notepad++ documentation.

  2. Open TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
    

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.