Visual Studio Tip: Examining long strings while debugging

Long strings can be a pain to examine in Visual Studio while you’re debugging but in .NET projects you can easily write these to a file on the fly. If for example we want to examine the contents of string s, open up the Immediate Window (Ctrl+I) and type System.IO.File.WriteAllText(“C:\\Debug.txt”, s); Then open up C:\Debug.txt to…

0

Navigate large solutions in Visual Studio quicker

The one Visual Studio tip that everyone should know is how to quickly open a file in a large solution without having to remember which folder or project it’s in. Press Ctrl+Alt+A to open up the Command Window, then type open and the first few letters of the filename and you’ll get a dropdown of…

0