.gitignore with Visual Studio 2017 - Ignore .vs-folder OK?

Is it safe to just ignore the whole .vs-folder?

I see there is a file in there, .suo, that’s a Visual Studio Solution User Options-file. Maybe that shouldn’t be ignored?

Hello Frank,

The .suo file holds your user preferences for Visual Studio, if you are working on your own, then having those included wouldn’t perhaps be the end of the world. However, if you are working in a team environment, or sharing your repository publicly, having that file in there will set another person’s Visual Studio setup to your preferences.

We used to have this issue a lot in the office when people included it, suddenly you have your tabbing swapped out for 3 spaces, or maybe 2 spaces, inconsistencies everywhere :slight_smile: A lot of people lost friends fairly quickly back then…

The following article may also help;

2 Likes

Thanks!

And now */.vs goes into .gitignore. :slight_smile:

1 Like

You’re welcome Frank :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms