Skip to main content

Git とのテキストエディタの関連付け

テキストエディタを使って Git でファイルを開いたり編集したりしてください。

Platform navigation

Visual Studio Code をエディターに使う

  1.        [Visual Studio Code](https://code.visualstudio.com/) (VS Code) をインストールします。 詳細については、VS Code ドキュメントの「[VS Code の設定](https://code.visualstudio.com/Docs/setup/setup-overview)」を参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

    git config --global core.editor "code --wait"
    
  1.        [Visual Studio Code](https://code.visualstudio.com/) (VS Code) をインストールします。 詳細については、VS Code ドキュメントの「[VS Code の設定](https://code.visualstudio.com/Docs/setup/setup-overview)」を参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

    git config --global core.editor "code --wait"
    
  1.        [Visual Studio Code](https://code.visualstudio.com/) (VS Code) をインストールします。 詳細については、VS Code ドキュメントの「[VS Code の設定](https://code.visualstudio.com/Docs/setup/setup-overview)」を参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

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

エディタとして Sublime Text を使う

  1.        [Sublime Text](https://www.sublimetext.com/) をインストールします。 詳細については、Sublime Text の「[Installation](https://docs.sublimetext.io/guide/getting-started/installation.html)」(インストール) ドキュメントを参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

    git config --global core.editor "subl -n -w"
    
  1.        [Sublime Text](https://www.sublimetext.com/) をインストールします。 詳細については、Sublime Text の「[Installation](https://docs.sublimetext.io/guide/getting-started/installation.html)」(インストール) ドキュメントを参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

    git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
    
  1.        [Sublime Text](https://www.sublimetext.com/) をインストールします。 詳細については、Sublime Text の「[Installation](https://docs.sublimetext.io/guide/getting-started/installation.html)」(インストール) ドキュメントを参照してください。
    
  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

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

エディタとして Notepad++ を使う

  1. Notepad++ をhttps://notepad-plus-plus.org/からインストールしてください。 詳細については、Notepad++ の「概要」のドキュメントを参照してください。

  2. [ターミナル][ターミナル][Git Bash] を開きます。

  3. 次のコマンドを入力します。

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