Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create and init ".vscode" in VSCode?

Tags:

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?

An empty .vscodev

like image 823
Asam Avatar asked Nov 02 '16 10:11

Asam


People also ask

How do I create a .VS Code folder?

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.

How do you initialize a project in VS Code?

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.

How do I create a VS workspace in code?

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.


2 Answers

Try to open settings.json for your workspace/directory

open command pallete Ctrl+Shift+p

enter image description here

like image 73
Vishal Singh Avatar answered Sep 27 '22 19:09

Vishal Singh


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.

like image 36
kwood Avatar answered Sep 27 '22 20:09

kwood