Last active
March 2, 2016 02:26
-
-
Save twlca/b5e45f1cd65f102bb443 to your computer and use it in GitHub Desktop.
使用 Notepad++ 作為預設編輯器
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="zh-TW"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>使用 Notepad++ 作為 GitHub 預設的文字編輯器</title> | |
</head> | |
<body> | |
<blockquote>參考來源:<a href="http://www.buildmeimfamous.net/2013/12/use-notepadplusplus-with-git-as-default-editor</a></blockquote> | |
<p><code>GitHub</code> 雖然提供界面讓使用者可以直接輸入內容,但因為 git 的開發目的主要是為了撰寫程式,所以沒有考慮中文顯示的問題。如果要在文章中鍵入中文,建議採用外部編輯器,在這裡推廌使用 Notepad++。</p> | |
<h2>如何將 Notepad++ 設定成 GitHub 的預設編輯器</h2> | |
<pre> | |
git config --system --edit | |
</pre> | |
在 [core] 段落中加入 | |
<pre></pre> | |
editor=\"c:/program files (x86)/Notepad++/notepad++.exe\" -multiInst -nosession -noplugin | |
</pre> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用 Notepad++ 作為 GitHub 預設的文字編輯器
雖然提供界面讓使用者可以直接輸入內容,但因為 git 的開發目的主要是為了撰寫程式,所以沒有考慮中文顯示的問題。如因要在文章中鍵入中文,建議採用外部編輯器,在這裡推薦使用 Notepad++。
如何將 Notepad++ 設定成 GitHub 的預設編輯器
在
[core]
段落中加入