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

Ruby ActiveRecord Basics Migrations and Relationships Migrations

Philip Bessa
Philip Bessa
5,396 Points

How do we open the app with Sublime on Windows?

When he does the command subl ., the command doesn't exist for me. I'm using Windows with the Cmder.bat thing, outlined in a previous course for windows users.

It wouldn't be a big problem, except that even if I do manually open Sublime and look for the "biller" folder app, there is none. So what gives? I'm unable to follow along. It's as if the rails app for hamblog and biller don't exist at all.

1 Answer

Garrett Carver
Garrett Carver
14,681 Points

Hi Phillip,
If you want to add any program to be called easily from the commandline, follow this guide. It shows you how to edit your system path so that it looks for your Sublime Text .exe files. You'll want to append to your system path, a semicolon + your sublime text directory path. (example: ';C:\Program Files\Sublime Text 3')

In the sublime text folder, there is a sublime_text.exe and subl.exe.

Once you've followed the steps, you should be able to type either of the following in CMD:

sublime_text file1.txt file2.txt (opens sublime text with any files you call into it)

OR

subl file1.txt file2.txt

Some programs have both a commdline version, and a gui version, although I think they might be the same thing with Sublime text. Let me know if you have questions or are still confused.

Philip Bessa
Philip Bessa
5,396 Points

I can now open files with Sublime in my command prompt (hooray), but the setup given in this track still leaves me unable to open files created through the VM connection with Sublime.

Would this mean I have to not use the VM? It's a big unknown to me and I'm trying to avoid creating apps everywhere.

Garrett Carver
Garrett Carver
14,681 Points

Sorry I am not taking this track yet, so I am not sure which Virtual Machine you are referring to. I am guessing you mean the linux based one that you launch from the Treehouse website. If you want to edit the system path for a linux machine like you did on windows, they explain how to do it in this video at around 14:00. Hope that helps!