title: Visual Studio files association in Windows
body: <p>In Windows Explorer when I double-click on any Visual Studio file (<code>*.cs</code>, <code>*.csproj</code>, etc.), it's opening an old version of VS instead of the latest one (VS 2017). And VS has associations with too many file types.</p>
  
  <p><strong>How can I change the <em>default</em> Visual Studio</strong> (for all those files that VS can handle)?</p>
  
  <p><sub><sup>
  There is a similar old question about Visual Studio 2008 (<a href="https://stackoverflow.com/q/1326506/146513">Move file associations from Visual Studio 2005 to 2008</a>) but the solution in there doesn't work anymore (there is no "Restore File Associations" button on the settings of Visual Studio 2017).
  </sup></sub></p>