Tell us what’s happening:
Hello everyone, So i have a small problem here. I am trying to run live server but I am getting an error message in vs code saying that I should open folder or workplace .I did make a directory folder with the CLI in vs code
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Challenge Information:
Working with Code Editors and IDEs - How to Create a Project and Run Your Code Locally in VS Code
You just need to open that directory in VS Code.
After creating it, run:
cd <your_directory_name>
code .
Or, in VS Code, go to File → Open Folder...
1 Like
VS Code makes local development much smoother once you grasp its structure. I usually start by setting up a simple folder, opening it as a workspace, and adding a live server extension for instant preview. Running JavaScript locally through Node or browser console helps catch issues early. Integrated Git and terminal tools make it ideal for both quick experiments and full projects.