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!
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
Gal ParselanyFront End Web Development Techdegree Graduate 20,051 Points
Windows users solution to open the vs code from the prompt :
- Open the start menu and search for "Environment Variables" and click on "Edit the system environment variables".
- In the "System Properties" window that appears, click on the "Environment Variables" button at the bottom.
- In the "Environment Variables" window, scroll down to the "System variables" section and find the "Path" variable. Click on the "Edit" button.
- In the "Edit environment variable" window, click on the "New" button and enter the path to the Visual Studio Code installation directory. This is typically C:\Program Files\Microsoft VS Code or C:\Program Files (x86)\Microsoft VS Code on Windows.
- Click on "OK" to close all the windows and save the changes.
- Open a new terminal or command prompt and try running the code command again.