breki.github.io

personal knowledgebase


Project maintained by breki Hosted on GitHub Pages — Theme by mattgraham

Visual Studio And Resharper Knowledgebase

Visual Studio

Performance

Viewing & Editing XSD As XML

By default, Visual Studio opens an XSD document with a visual designer. If you want to view and edit XSD simply as an XML document, use “Open with…” context menu option.

Extensions Used

Resharper

Keyboard Shortcuts

Enabling Shorcuts Browser

Re-enabling “Go To File Member” Shortcut

For some reason, new versions of R# (year 2017) no longer have the Alt+\ (Go to file member) shortcut. To re-enable it, go to VS keyboard customization dialog and add ReSharper.ReSharper_GotoFileMember shortcut.

Settings to make sure you have

Troubleshooting

Solution-Wide Analysis

Sometimes (when moving projects, for example), R# Solution-Wide Analysis does not detect the newly moved projects and reports missing references. Solution: unload and reload the project in Visual Studio.

xUnit tests not being recognized

First of all, you need xunit.runner.visualstudio NuGet package installed in your test project. If this still doesn’t help, clear Resharper cache and restart Visual Studio.

Keyboard shortcuts I’m using in VS/R#

This is a growing list of keyboard shortcuts I’m using. The idea is to then try to map these to Rider/VS Code/IntelliJ