Ignoring the ".vscode" Directory Generated by VSCode

VSCode or Visual Studio Code generates a directory named “.vscode” which contains cofiguration for it (VSCode). I do not want to include it in version control. So, how should my .gitignore file look like? My current file looks like this-


. But I found that Intel’s file did it in a different way. What should I do?

Never mind. I solved this on my own. I should go with Intel’s way.

There’s not actually much difference between .vscode and .vscode/*. .vscode gitignores the folder itself whereas .vscode/* gitignores the contents of the .vscode folder.