简体   繁体   中英

How to Use Scite as default editor in Git

I'm using git config --global core.editor "mate -w" when using textmate. How do I set it to scite? I am not sure what -w or -f means. Thanks!

I just set the editor like the following and it worked fine:

git config --global core.editor "'C:/Program Files (x86)/Scintilla Text Editor/scite.exe'"

On another machine I had to change the path:

$ git config --global core.editor "'C:/Program Files (x86)/SciTE/scite.exe'"

-w is a command line option, see mate --help what it means. You can probably just use git config --global core.editor "scite" , check scite --help for any options.

Textmate has a command line helper program called mate which is installed in your path. This line in config says run that program (which runs TextMate), and the -w flag means wait for the file to be closed before carrying on.

For Scite - it may have a command line tool and a flag that lets it behave the same way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM