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 trialMadhvi Maheshwari
7,788 PointsHow to launch a Sublime text 2 in command line in windows 8
I have downloaded sublime text 2 windows version but still in cmd it saying is not recognized as an internal or external command.
please anybody can help me on this matter..
3 Answers
Fredrik August Madsen-Malmo
16,261 PointsHey, I had some issues with this aswell. You can type:
open path/file.txt -a "Sublime Text"
This worked for me at least. I use Sublime Text 3, but it should be the same thing.
EDIT: Made a boo boo, the open command is on OSX. In windows you would use either
start "Sublime Text" path/file.file
or
edit "Sublime Text" path/file.file
For more information see: Superuser
Madhvi Maheshwari
7,788 Pointsi have tried edit but it is also not working
Fredrik August Madsen-Malmo
16,261 PointsI'm sorry, but then I can't help you. Unless you want to open Sublime Text and press open file.
Madhvi Maheshwari
7,788 PointsI have opened the sublime Text 2 but in video its saying check .ssh by typing command ls -la but this command is not working in windows..can u help me in that as well..sorry to ask so many question but i dont understand why teacher as not explained in windows as well..
Madhvi Maheshwari
7,788 PointsMadhvi Maheshwari
7,788 PointsIts saying open is not recognized as an internal or external command
Fredrik August Madsen-Malmo
16,261 PointsFredrik August Madsen-Malmo
16,261 PointsCan you try the command without the open?
So:
path/file.txt -a "Sublime Text"
Madhvi Maheshwari
7,788 PointsMadhvi Maheshwari
7,788 PointsI have used this path path/file.txt -a "Sublime Text" but its not opening the new window and not even giving any error
Fredrik August Madsen-Malmo
16,261 PointsFredrik August Madsen-Malmo
16,261 PointsI made a mistake, please see my edit.