Yes, what Gus said. If you just copy and paste the code into a blank directory, VSCode does not realize that it's Particle project. If you Particle: Create New Project it creates the src directory, project.properties file, and settings.json and launch.json in the .vscode directory which are required for all of the features to work properly.