I am trying to look for a folder called .vscode and I can’t find it anywhere on my C drive. Is it hidden? If it is, where should I look for it so that i can unhide it.
I tried searching for it manually on my pc and it took too long and still didn’t find anything. i checked the in appdata and still couldn’t find it.
I have a python program. It is inside a folder. Thus the project folder is that folder itself. (documents/python). I have ran the code. No .vscode folder has been created. Hence why I am asking for help.
This is not similar to the question “what is the vscode folder” since I can’t find the folder itself, I know that an electron orbits a hydrogen nucleus, but I can’t find its location.
Here is the python.code-workspace file’s code
{
"folders": [
{
"path": "."
}
],
"settings": {
"emmet.preferences": {}
}
23
According to official documentation:
A VS Code “workspace” is usually just your project root folder. Workspace settings as well as debugging and task configurations are stored at the root in a
.vscode
folder.
2
The .vscode folder is usually a hidden directory located in the root of your project folder.
The .vscode folder typically appears in one of the following places:
- In the root of your project directory (e.g., C:Users<YourUsername>DocumentsMyProject.vscode).
- It might be within the C:Users<YourUsername>.vscode if it’s related to user-wide settings or extensions.
If you don’t find the .vscode folder, it may not have been created yet. You can create this folder manually in your project directory if you need to store specific settings or extensions there.
You can know more information through The documentation
The (workspace) .vscode directory doesn’t get automatically created (in the absence of extensions that write changes to workspace settings). It’s just a regular directory. If it doesn’t exist, you can create it. Create it right under/inside the workspace folder. Ex. by clicking an empty section of the Explorer View, and then click the “create new folder/directory” action button at the top right of the Explorer View, and then name it “.vscode”. You can also create it by running Preferences: Open Workspace Settings (JSON)
in the command palette (see Is there a way to make a settings.json simply on a project?)