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 trialBob Sutherton
20,160 PointsHow to GIT Sublime Text 3?
I am on a windows computer and I have GIT bash installed as per the GIT course. I also recently bought a license for Sublime Text 3 and would like to make it my text editor when I use GIT instead of notepad.
I have been through several tutorials but they don't seem to work. The subl command is still not recognized.
Can someone give me a lead on this? The tutorial on the Github site is for Sublime Text 2 so I am wondering if that makes a difference.
Thanks.
3 Answers
Chris Shaw
26,676 PointsHi Brock,
Your question is slightly confusing as GIT and ST3 are two completely different things but lets give this a ago shall we, in order to use subl
as a command on Windows which is slightly different you need to add an entry into your environment variables which allows cmd
to properly respond to executable requests.
See the below link for information about this.
https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows
Additionally you might want to check out the following links for integrating GIT within Sublime Text.
Bob Sutherton
20,160 PointsDo you know if the command line and the git bash are the same thing as I follow along with the Scotch article? They look the same to me.
Bob Sutherton
20,160 PointsOkay I just went through the Scotch.io article and it didn't work. He says to add something to the end of a USER VARIABLE called PATH. But the only USER VARIABLES i see are called TEMP and TMP. There isn't a PATH user variable for me to add this to the end of. The rest of the instructions I was able to follow just not this final part.
Bob Sutherton
20,160 PointsI tried adding the PATH user variable but didn't know what to set the variable value to. Things look different from the tutorial.
Bob Sutherton
20,160 PointsBob Sutherton
20,160 PointsThanks. I will give these a try and let you know how I come out. Sorry for the confusing headline.