Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Tammy Dotson
Tammy Dotson
16,790 Points

Changing Git Code Editor in Windows

How do I get Git to change the code editor from notepad to Adobes Edge Code or Notepad ++. I have been trying git config --global core.editor with paths to each file and nothing seems to be working. After each attempt I get command not found. Or it goes back to the command prompt then when I try and type in the editor e.g. notepad++ readme i get the command not found message again.

4 Answers

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

The method described here might be what you're looking for.

Tammy Dotson
Tammy Dotson
16,790 Points

Thank you Ethan I tried this and it didn't work for me. I know I am getting the paths right. I just can't figure it out. Thanks for your help though, I appreciate it.

Tammy Dotson
Tammy Dotson
16,790 Points

Thank you Ethan after doing some research your post did lead me to the answer. I am posting how I did it here in case anyone searches the forum and this can help. I got it working with notepad++ by typing in. git config --global core.editor ' "C:/Program Files (x86)/Notepad++/Notepad++.exe" ' for some reason the single and double quotations were the key on my system.

Ethan Lowry
Ethan Lowry
Courses Plus Student 7,323 Points

Also if you wouldn't mind marking the question as answered that would be good, thanks :)

Tammy Dotson
Tammy Dotson
16,790 Points

I was looking for that but I don't see it in this post for some reason its not showing up. I see the correct answer in other posts but not this one.