AndroidStudio modify Git Editor

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/u014112893/article/details/102741366

AndroidStudio default Terminal editor-bit cmd, we can replace it with other editors.

Replace git-bash

AndroidStudio open the Settings page, Tools -> Terminal, Shell path provided in native git-bash.exe path.

Open Terminal again, I found the page has changed
Here Insert Picture Description

Personal feeling much more convenient than Windows git-bash cmd, when using Git can also press the Tab key completion. But when the commit log in to write can not wrap. Only git commit -m "Description"

Git will replace the VIM editor
git config --global core.editor vim

Enter the command git commit After successful you can write the contents of the edit box pops up, but found that Chinese garbled when editing Chinese

Modify VIM Chinese garbled

Enter the following command in Terminal

vim ~/.bashrc

The English mode, press i enter the edit mode, open the file increases

export LANG=zh_CN.UTF-8
export LC_CTYPE="zh_CN.UTF-8"

Press Esc to exit edit mode, save

:wq

Enable file

source ~/.bashrc

Git commit again to enter the VIM can input Chinese characters.

Guess you like

Origin blog.csdn.net/u014112893/article/details/102741366