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

JavaScript npm Basics Managing Packages with NPM Installing Packages

Sean Gibson
Sean Gibson
38,363 Points

Where is the explanation of the code command?

The teacher said the command could be referenced in the Teachers Notes but I don't see it. Am I just missing something?

I can't find it either. Typing 'code' (and even 'code .' as the tutor did) into the terminal doesn't yield anything.

2 Answers

The command 'code' starts the Visual Studio Code IDE.

Jesse Evans
seal-mask
.a{fill-rule:evenodd;}techdegree
Jesse Evans
Full Stack JavaScript Techdegree Student 8,967 Points

just to add to what Jason Larson said, all this does is launch Visual Studio Code. If it's not working for you, that could be because you don't have it installed and you've been using a different IDE like Atom.

I think there may be exceptions, but you can launch programs from the command line just by typing the name of the program and hitting [enter]. Try that with Spotify or Discord or something!