Skip to content

Instantly share code, notes, and snippets.

@twlca
Last active March 2, 2016 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save twlca/b5e45f1cd65f102bb443 to your computer and use it in GitHub Desktop.
Save twlca/b5e45f1cd65f102bb443 to your computer and use it in GitHub Desktop.
使用 Notepad++ 作為預設編輯器
<!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>
@twlca
Copy link
Author

twlca commented Jan 20, 2016

使用 Notepad++ 作為 GitHub 預設的文字編輯器

雖然提供界面讓使用者可以直接輸入內容,但因為 git 的開發目的主要是為了撰寫程式,所以沒有考慮中文顯示的問題。如因要在文章中鍵入中文,建議採用外部編輯器,在這裡推薦使用 Notepad++。

如何將 Notepad++ 設定成 GitHub 的預設編輯器

$ git config --system --edit

[core] 段落中加入

editor=\"c:/program files (x86)/Notepad++/notepad++.exe\" -multiInst -nosession -noplugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment