* backticks for javascript * Update sorting-search-results.md backticks asc * Update installing-github-enterprise-server-on-azure.md fixed vm az * Update searching-for-repositories.md backticks * Update searching-code.md backticks * Update searching-issues-and-pull-requests.md backticks * Update searching-issues-and-pull-requests.md * Update understanding-the-search-syntax.md * Update searching-for-packages.md * Update upgrading-from-dependabotcom-to-github-native-dependabot.md * fix errors in source * removed spaces * vale docs * link to md link * spacing for backticks * docs draft * remove space * removed spacing * drafting * drafting * draft * escape single quote * escape another single quote * fix broken link * vale guide * edge case * edge case ex * edge case ex link * grammer * grammer * Update vale-guide.md clarity * Update vale-guide.md small edit * clarity * sentence fix * Rubocop to RuboCop * Rubocop -> RuboCop * terms in backticks * pem in backtick * idp -> IdP * file names in backticks * public/private rsa in backticks * fix vale errors * fix vale errors * Update sending-enterprise-contributions-to-your-githubcom-profile.md fix dot-com links * Update metadata-syntax-for-github-actions.md * Update configuring-codeql-cli-in-your-ci-system.md * Update content/get-started/getting-started-with-git/associating-text-editors-with-git.md Co-authored-by: Vanessa <vgrl@github.com> * Update managing-deploy-keys.md public and private rsa key pair * Update libraries.md removed backticks for consistency * Update sorting-search-results.md removed backticks for consistency * Update metadata-syntax-for-github-actions.md removed backticks for consistency * Update metadata-syntax-for-github-actions.md removed backticks * delete vale config files Co-authored-by: Vanessa <vgrl@github.com> Co-authored-by: Amy Burns <timeyoutakeit@github.com>
128 lines
5.0 KiB
Markdown
128 lines
5.0 KiB
Markdown
---
|
|
title: Associating text editors with Git
|
|
intro: Use a text editor to open and edit your files with Git.
|
|
redirect_from:
|
|
- /textmate
|
|
- /articles/using-textmate-as-your-default-editor
|
|
- /articles/using-sublime-text-2-as-your-default-editor
|
|
- /articles/associating-text-editors-with-git
|
|
- /github/using-git/associating-text-editors-with-git
|
|
- /github/getting-started-with-github/associating-text-editors-with-git
|
|
- /github/getting-started-with-github/getting-started-with-git/associating-text-editors-with-git
|
|
versions:
|
|
fpt: '*'
|
|
ghes: '*'
|
|
ghae: '*'
|
|
ghec: '*'
|
|
shortTitle: Associate text editors
|
|
---
|
|
{% mac %}
|
|
|
|
## Using Atom as your editor
|
|
|
|
1. Install [Atom](https://atom.io/). For more information, see "[Installing Atom](https://flight-manual.atom.io/getting-started/sections/installing-atom/)" in the Atom documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "atom --wait"
|
|
```
|
|
|
|
## Using Visual Studio Code as your editor
|
|
|
|
1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see "[Setting up Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)" in the VS Code documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "code --wait"
|
|
```
|
|
|
|
## Using Sublime Text as your editor
|
|
|
|
1. 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.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "subl -n -w"
|
|
```
|
|
|
|
## Using TextMate as your editor
|
|
|
|
1. Install [TextMate](https://macromates.com/).
|
|
2. Install TextMate's `mate` shell utility. For more information, see "[`mate` and `rmate`](https://macromates.com/blog/2011/mate-and-rmate/)" in the TextMate documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
4. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "mate -w"
|
|
```
|
|
{% endmac %}
|
|
|
|
{% windows %}
|
|
|
|
## Using Atom as your editor
|
|
|
|
1. Install [Atom](https://atom.io/). For more information, see "[Installing Atom](https://flight-manual.atom.io/getting-started/sections/installing-atom/)" in the Atom documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "atom --wait"
|
|
```
|
|
|
|
## Using Visual Studio Code as your editor
|
|
|
|
1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see "[Setting up Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)" in the VS Code documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "code --wait"
|
|
```
|
|
|
|
## Using Sublime Text as your editor
|
|
|
|
1. 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.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
|
|
```
|
|
|
|
## Using Notepad++ as your editor
|
|
|
|
1. Install Notepad++ from https://notepad-plus-plus.org/. For more information, see "[Getting started](https://npp-user-manual.org/docs/getting-started/)" in the Notepad++ documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
|
|
```
|
|
{% endwindows %}
|
|
|
|
{% linux %}
|
|
|
|
## Using Atom as your editor
|
|
|
|
1. Install [Atom](https://atom.io/). For more information, see "[Installing Atom](https://flight-manual.atom.io/getting-started/sections/installing-atom/)" in the Atom documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "atom --wait"
|
|
```
|
|
|
|
## Using Visual Studio Code as your editor
|
|
|
|
1. Install [Visual Studio Code](https://code.visualstudio.com/) (VS Code). For more information, see "[Setting up Visual Studio Code](https://code.visualstudio.com/Docs/setup/setup-overview)" in the VS Code documentation.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "code --wait"
|
|
```
|
|
|
|
## Using Sublime Text as your editor
|
|
|
|
1. 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.
|
|
{% data reusables.command_line.open_the_multi_os_terminal %}
|
|
3. Type this command:
|
|
```shell
|
|
$ git config --global core.editor "subl -n -w"
|
|
```
|
|
|
|
{% endlinux %}
|