Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
4.5 KiB
4.5 KiB
title, intro, redirect_from, versions, shortTitle
| 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 %}
Using {% data variables.product.prodname_vscode %} as your editor
- 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"
Using Sublime Text as your editor
- 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"
Using TextMate as your editor
- Install TextMate.
- Install TextMate's
mateshell utility. For more information, see "mateandrmate" 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 %}
Using {% data variables.product.prodname_vscode %} as your editor
- 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"
Using Sublime Text as your editor
- 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"
Using Notepad++ as your editor
- 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 %}
{% linux %}
Using {% data variables.product.prodname_vscode %} as your editor
- 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"
Using Sublime Text as your editor
- 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 %}