I want to create a project in vscode, but I don't know how to initialize the ".vscode" folder in the project, creating it by HM and the ware won't initialize any file in it.
How can I do this?
The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right-click on any of the root folders and use the context menu to add or remove folders.
When you first open Visual Studio, the start window appears, and from there, you can select Create a new project. If the Visual Studio development environment is already open, you can create a new project by choosing File > New > Project on the menu bar.
You can start off by opening a folder in VS Code and then later add more folders as you see fit. Unless you already have opened a . code-workspace file, the first time you add a second folder to a workspace, VS Code will automatically create an "untitled" workspace.
Try to open settings.json for your workspace/directory
open command pallete Ctrl+Shift+p
Normally there should be no need to initialize anything, VSCode handles this folder by itself. As soon you do something that needs to go into this folder, for example using "Preferences->Workspace Settings" or by using one of the debugger presets, it gets populated with the files.
And if you really want to add anything by creating the files by yourself and without using the GUI or the command the palette, you just create the folder and whatever file you need. There is no additional "magic" involved, just a folder with a name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With