I am trying Visual Studio Code at this moment. Everything about Visual Studio Code look really cool to me except one thing: .git folder/file is hidden in Visual Studio C
You should also be aware of the search.useIgnoreFiles
setting, which will ignore files and folders that are ignored using .gitignore
and .ignore
files.
The settings for Visual Studio Code can be found:
There are both users settings (for everyone) and workspace settings for individual projects.
More instructions can be found at: User and Workspace Settings
By default Visual Studio Code excludes files in a folder using the following settings:
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true
}
You can change your user settings or workspace settings to show the .git folder by adding these lines:
"files.exclude": {
"**/.git": false
}
You can access this setting in the settings option.
Then we need to copy this particular settings section to the right side and make the changes.
The below steps can be followed to override the existing user setting:
files.exclude
files.exclude
property, click on the edit icon and then opt for the copy to settings..git
folder will automatically appear in the respective repository.It's probably best to leave this hidden
If you are using the sidebar to navigate and edit files, it would leave an opportunity to accidentally drop a file or folder in it, or accidentally move it to a different location. A better solution would be to open a terminal session in Visual Studio Code and then do code .git
. That will open the folder in another Visual Studio Code instance and from there you can edit it.