如何使用Notepad ++从Git启动和编辑文件? [英] How to launch and edit a file from Git using Notepad++?

查看:1450
本文介绍了如何使用Notepad ++从Git启动和编辑文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Notepad ++设置为我的默认编辑器,如下所示:
如何设置一个编辑器在Windows上使用Git?



用这个命令:

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

现在,我正在开发一个Ruby on Rails教程。一步之后,作者使用命令:
$ mate README.markdown启动他的TextMate编辑器并编辑自述文件。



我的问题现在,我已经将Notepad ++设置为我的默认编辑器,我应该使用什么等效命令来启动Notepad ++并编辑文件?

注意:我是这个Git和Ruby on Rails的初学者。请在我身上轻松一下!提前致谢。

解决方案

  C:/ Program Files / Notepad ++ / notepad ++ .exe README .markdown 

由于您可能想要在命令行中使用notepad ++,因此您可以希望更改PATH 以包含其根目录,因此您无需编写每次完整路径。

I have set up Notepad++ as my default editor as in this topic: How can I set up an editor to work with Git on Windows?

with this command:

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

Now, I'm working through a Ruby on Rails tutorial. On one step, the author uses the command: $mate README.markdown to launch his TextMate editor and edit the readme file.

My question is, now that I have set up Notepad++ as my default editor, what is the equivalent command that I should use to launch Notepad++ and edit the file?

Note: I'm a beginner with this Git and Ruby on Rails. Please go easy on me! Thanks in advance.

解决方案

C:/Program Files/Notepad++/notepad++.exe README.markdown

And since you'll probably want to use notepad++ a lot from the command line, you may want to alter your PATH to include its root directory, so you don't need to write the full path each time.

这篇关于如何使用Notepad ++从Git启动和编辑文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆