title | intro | redirect_from | versions | shortTitle | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Associating text editors with Git |
Use a text editor to open and edit your files with Git. |
|
|
Associate text editors |
{% mac %}
-
Install {% data variables.product.prodname_vscode %} ({% data variables.product.prodname_vscode_shortname %}). For more information, see "Setting up {% data variables.product.prodname_vscode_shortname %}" in the {% data variables.product.prodname_vscode_shortname %} documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "code --wait"
{% endmac %}
{% windows %}
-
Install {% data variables.product.prodname_vscode %} ({% data variables.product.prodname_vscode_shortname %}). For more information, see "Setting up {% data variables.product.prodname_vscode_shortname %}" in the {% data variables.product.prodname_vscode_shortname %} documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "code --wait"
{% endwindows %}
{% linux %}
-
Install {% data variables.product.prodname_vscode %} ({% data variables.product.prodname_vscode_shortname %}). For more information, see "Setting up {% data variables.product.prodname_vscode_shortname %}" in the {% data variables.product.prodname_vscode_shortname %} documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "code --wait"
{% endlinux %}
{% mac %}
-
Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "subl -n -w"
{% endmac %}
{% windows %}
-
Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
{% endwindows %}
{% linux %}
-
Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "subl -n -w"
{% endlinux %}
{% mac %}
-
Install TextMate.
-
Install TextMate's
mate
shell utility. For more information, see "mate
andrmate
" in the TextMate documentation. {% data reusables.command_line.open_the_multi_os_terminal %} -
Type this command:
git config --global core.editor "mate -w"
{% endmac %}
{% windows %}
-
Install Notepad++ from https://notepad-plus-plus.org/. For more information, see "Getting started" in the Notepad++ documentation. {% data reusables.command_line.open_the_multi_os_terminal %}
-
Type this command:
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
{% endwindows %}