{"meta":{"title":"Associating text editors with Git","intro":"Use a text editor to open and edit your files with Git.","product":"Get started","breadcrumbs":[{"href":"/en/get-started","title":"Get started"},{"href":"/en/get-started/git-basics","title":"Git basics"},{"href":"/en/get-started/git-basics/associating-text-editors-with-git","title":"Associate text editors"}],"documentType":"article"},"body":"# Associating text editors with Git\n\nUse a text editor to open and edit your files with Git.\n\n## Using Visual Studio Code as your editor\n\n<div class=\"ghd-tool mac\">\n\n1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see [Setting up VS Code](https://code.visualstudio.com/Docs/setup/setup-overview) in the VS Code documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"code --wait\"\n   ```\n\n</div>\n\n<div class=\"ghd-tool windows\">\n\n1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see [Setting up VS Code](https://code.visualstudio.com/Docs/setup/setup-overview) in the VS Code documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"code --wait\"\n   ```\n\n</div>\n\n<div class=\"ghd-tool linux\">\n\n1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see [Setting up VS Code](https://code.visualstudio.com/Docs/setup/setup-overview) in the VS Code documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"code --wait\"\n   ```\n\n</div>\n\n## Using Sublime Text as your editor\n\n<div class=\"ghd-tool mac\">\n\n1. Install [Sublime Text](https://www.sublimetext.com/). For more information, see [Installation](https://docs.sublimetext.io/guide/getting-started/installation.html) in the Sublime Text documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"subl -n -w\"\n   ```\n\n</div>\n\n<div class=\"ghd-tool windows\">\n\n1. Install [Sublime Text](https://www.sublimetext.com/). For more information, see [Installation](https://docs.sublimetext.io/guide/getting-started/installation.html) in the Sublime Text documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"'C:/Program Files (x86)/sublime text 3/subl.exe' -w\"\n   ```\n\n</div>\n\n<div class=\"ghd-tool linux\">\n\n1. Install [Sublime Text](https://www.sublimetext.com/). For more information, see [Installation](https://docs.sublimetext.io/guide/getting-started/installation.html) in the Sublime Text documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"subl -n -w\"\n   ```\n\n</div>\n\n<div class=\"ghd-tool windows\">\n\n## Using Notepad++ as your editor\n\n1. Install Notepad++ from https://notepad-plus-plus.org/. For more information, see [Getting started](https://github.com/notepad-plus-plus/npp-usermanual/blob/master/content/docs/getting-started.md) in the Notepad++ documentation.\n1. Open <span class=\"platform-mac\">Terminal</span><span class=\"platform-linux\">Terminal</span><span class=\"platform-windows\">Git Bash</span>.\n1. Type this command:\n\n   ```shell\n   git config --global core.editor \"'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin\"\n   ```\n\n</div>"}