Skip to main content

关联文本编辑器与 Git

使用文本编辑器打开文件并通过 Git 编辑。

Platform navigation

将 Visual Studio Code 用作编辑器

  1. 安装 Visual Studio Code (VS Code)。 有关详细信息,请参阅 VS Code 文档中的设置 VS Code

  2. 打开终端终端Git Bash

  3. 键入以下命令:

    git config --global core.editor "code --wait"
    
  1. 安装 Visual Studio Code (VS Code)。 有关详细信息,请参阅 VS Code 文档中的设置 VS Code

  2. 打开终端终端Git Bash

  3. 键入以下命令:

    git config --global core.editor "code --wait"
    
  1. 安装 Visual Studio Code (VS Code)。 有关详细信息,请参阅 VS Code 文档中的设置 VS Code

  2. 打开终端终端Git Bash

  3. 键入以下命令:

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

使用 Sublime Text 作为编辑器

  1. 安装 Sublime Text。 有关详细信息,请参阅 Sublime Text 文档中的安装

  2. 打开终端终端Git Bash

  3. 键入以下命令:

    git config --global core.editor "subl -n -w"
    
  1. 安装 Sublime Text。 有关详细信息,请参阅 Sublime Text 文档中的安装

  2. 打开终端终端Git Bash

  3. 键入以下命令:

    git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
    
  1. 安装 Sublime Text。 有关详细信息,请参阅 Sublime Text 文档中的安装

  2. 打开终端终端Git Bash

  3. 键入以下命令:

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

使用 Notepad++ 作为编辑器

  1. https://notepad-plus-plus.org/ 安装 Notepad++。 有关详细信息,请参阅 Notepad++ 文档中的入门

  2. 打开终端终端Git Bash

  3. 键入以下命令:

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy