
Instead of retyping ‘(‘ to show parameter info in method signatures, use Ctrl+Shift+Space to display the currently used overload. Make IntelliSense and tooltips semi-transparent for the duration you press and hold the Control key. You don’t need to write quotation marks around JSON property names, simply type a colon and Visual Studio will insert the quotes automatically. The inserted is selected so you can easily edit it to be any tag you’d like, and the end-tag matches up automatically.Ĭopy any JSON fragment to the clipboard and paste it as strongly typed. Make Solution Explorer automatically select the current active document, so you never lose track of its location in the project.Įasily surround HTML elements with a using Shift+Alt+W. Improve performance of solution load and reduce visual noise by disabling restore of node expansions in Solution Explorer as well as Reopen documents on solution load.įor fast keyboard navigation, use Ctrl+T to find anything in your solution – files, classes etc.Īssign a keyboard shortcut to perform a “git pull” so you don’t have to use CLI or Team Explorer to ensure your repo is up to date. Supported from Visual Studio 2013 Solution Reattach to process (Shift+Alt+P) is extremely helpful when you have to attach to the same process again and again.Ī blue dot in the margin indicates a switch of threads while stepping through debugging.
Visual studio 2012 show line numbers code#
Hitting F10 to build, run, and attach debugger instead of F5 will automatically break on the first time your own code is being executed. We’ve been sharing tips on Twitter using the #vstip hashtag for a while, and this is a collection of the best ones so far. Pinnable Properties would not have been possible without your enthusiasm and feedback for improving the existing DebuggerDisplay and Natvis behavior.Whether you are new or have been using Visual Studio for years, there are a bunch of tips and tricks that can make you more productive. Try out Pinnable Properties and give us even more feedback! We created the Pinnable Properties tool to reduce these issues and provide with you with an easier, more intuitive, and real-time method to customize your object inspection experience without having to modify your code or override your ToString() method. the lack of discoverability (I have been asked many times if DebuggerDisplay is a Visual Studio 2019 exclusive feature when it’s been out for many, many years now…).the inability to use the attribute dynamically at debug time.having to modify your code to use the attribute.Though DebuggerDisplay and Natvis can accomplish this task, they have several drawbacks that we observed and learned from you and other developers, including:
Visual studio 2012 show line numbers windows#
Your feedback determined that there was high demand for quickly identifying objects in debugger windows via specific properties. Why does the Pinnable Properties tool exist? Also, you can filter unpinned properties and hide property names via the Watch window toolbar or a DataTip context menu. The properties you pin will persist across all your future debugging sessions until you decide to unpin them. Now you can quickly identify and scan through your countless objects, greatly increasing your productivity. You will immediately see your selected members bubble to the top of your property list and appear in the Values column of any of the debugger inspection windows, replacing the default object type that is typically displayed. To use the tool, hover over a property and select the toggle-able pin icon that appears or select the “Pin Member as Favorite” option in the context menu. The Pinnable Properties tool is located in DataTips and the Autos, Locals, and Watch windows at debug time. How does the Pinnable Properties tool work? Native developers: Fear not, Pinnable Properties will also be available for C++ in a later update! Since that post, we’ve streamlined DebuggerDisplay’s behavior with Pinnable Properties, a new managed feature available for Visual Studio 16.4! This is a managed attribute that lets you customize how you view objects in debugging windows by “favoriting” specific properties. A few months ago, I wrote a blog post about the DebuggerDisplay attribute.
