Visual Studio 2017 Tips & Tricks

Showing posts with label Visual Studio 2017 Tips & Tricks. Show all posts

While adding assembly reference in Visual Studio 2017, if you are facing the following error message: "Error HRESULT E_FAIL has been returned from a call to a COM component", this could be due to ReferenceManagerPackage failed to load. If you encountered this issue, here's a quick solution for you to resolve it.

Published by on under Tips | Visual Studio 2017

How many times this happened with you while working on a code block you wanted to navigate to the last edited block of a code file? Now the latest version of Visual Studio 2017 provides you the option to easily go back to the last edited location.

 

In this part of my Visual Studio Productivity Tips series, we will learn how easy it is to quickly navigate to the last edit location in Visual Studio.

Published by on under Visual Studio 2017 | Visual Studio 2017 Tips & Tricks

How many times it happened when you tried to select a code block and then moved to its parent block to select the desired code? When the lines of code in a block increases, it becomes difficult to find the first line and last line.

 

In this part of my Visual Studio Productivity Tips series, we will learn how to use the all new 'Expand/Contract Selection' feature to select a logical code block in Visual Studio 2017.

Published by on under Visual Studio 2017 | Visual Studio 2017 Tips & Tricks

Those who always work with lots of projects in Visual Studio, its easy for them to switch from one project to the other by navigating through the File menu. This reduces the number of running Visual Studio instances.

 

In this part of my Visual Studio Productivity Tips series, we will learn how to increase or decrease the recent files and projects in Visual Studio MRU list.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

If you have some existing code files and want to club them in a single project/solution, adding those one by one to a project is time consuming. Do you know that Visual Studio provides you a wizard for doing this activity?

 

In this part of my Visual Studio Productivity Tips series, we will learn how to create a project and/or a solution from existing code.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

The latest version of Visual Studio 2017 (version 15.8) supports multiple carets. This means that, you can now create multiple insertion and selection points in your code file which will improve your productivity in certain conditions.

 

In this part of my Visual Studio Productivity Tips series, we will discuss how easy it is to add or delete code at multiple cursor positions.

Published by on under Tips | Visual Studio 2017

While working with Visual Studio, you may some time notice that, there are few Visual Studio commands which are not mapped with any keyboard shortcuts. Thus, working with such commands become very difficult as you need to navigate through the menus every time.

 

Do you know that, you can easily map custom shortcut keys to Visual Studio commands to ease your life? In this part of my Visual Studio Productivity Tips series, we will learn about the steps.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

Do you know that, you can quickly move between methods in Visual Studio using the Next Method and Previous Method navigational menus? This feature enables you to improve your productivity during development.

 

In this part of my Visual Studio Productivity Tips series, we will learn how easy it is to move back and forth through methods inside a code file.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

When you search for a text in Visual Studio, by default it lists the matched code block along with the file name in the search result. But, some time just listing the file name is enough to focus on where the text is available.

 

Visual Studio provides an option to drill down the search result and to keep you focused on what you wanted to view. In this part of my Visual Studio Productivity Tips series, let's learn how to do that.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

Do you know that, Visual Studio allows you to cycle through your Clipboard data to paste the right content that you copied previously? This built-in feature is known as Cycle Clipboard Ring and can be invoked using a keyboard shortcut.

 

In this part of my Visual Studio Productivity Tips series, let's learn how to cycle through your Visual Studio clipboard and make your life easy while copy/pasting code.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

Prior to the release of Visual Studio 2017 version 15.8, the Visual Studio Installer was downloading and installing the setup files in parallel. As a result, you had to always stay connected to online during the installation time.

 

If you have slow or limited internet connection, it was becoming difficult for many people. Now, this has been solved.

Published by on under Tips | Visual Studio 2017

In case you are facing the following error MSB4017: Could not run the "GenerateResource" task because MSBuild could not create or connect, while building your project/solution in Visual Studio, this could be because the build system is running out of the build process.

 

To resolve this error, there could be two different approaches. In this quick note, sharing both the solutions for your easy reference.

Published by on under Solution | Visual Studio 2015

Visual Studio 2017 provides you an easy way to upgrade your project's targeted language version, directly from the editor window. The Light Bulb, which is known as Quick Actions, automatically suggests you to upgrade the language version.

 

In this blog post, we will learn how to invoke it to perform the change for the associated project. Continue reading to learn more.

Published by on under Tips | Visual Studio 2015

Do you know that, Microsoft Visual Studio allows you to select the default language version of your project? The advanced project settings helps you to control the targeted C# language by changing the compiler version.

 

By default, the compiler accepts all valid language syntax that it can support. But if you want to change it to point to a specific version, let's learn how to do that.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

During application development, we often use XML files. To use XML files, we need XML objects; and to create the XML objects, we need to write the classes and properties based on the XML nodes/attributes, which we do manually.

 

Do you know that Visual Studio already provides an option to automatically create the entire class structure based on the XML input? Let's discuss this today.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

C# Interactive Window, inside Visual Studio, allows you to test code snippet without compiling the application. It supports several features like syntax highlighting, intellisense and more, and comes with a feature like 'Copy Code', that allows you to copy only the code part from that window.

 

In this quick blog post, we will discuss about the 'Copy Code' functionality part of the C# Interactive Window, inside Visual Studio.

Published by on under Tips | Visual Studio 2015

When you want certain constructors, methods or properties out of the debugger scope, you can use the DebuggerHidden attribute, part of the System.Diagnostics namespace. When a member has been marked as DebuggerHidden, breakpoints will not hit for that member.

 

If you are unaware of this attribute, let's go a step ahead to learn about this attribute and how it works. Continue reading to know more.

Published by on under Tips | Visual Studio 2013

Lightweight solution loading is a new concept in Visual Studio 2017, when enabled, Visual Studio loads a small subset of the projects instead of loading all the projects available in a large solution. Thus, it loads solutions twice faster.

 

You need to manually enable/disable this feature. But in version 15.3 and above, you can ask Visual Studio to decide whether to enable it or not. Let's discuss the steps.

Published by on under Tips | Visual Studio 2017

If you are a web developer and designing any website or a page, you may want to run it in multiple browsers to check cross-browser issues. Visual Studio provides an easy way to run the web application in all the selected browsers at a single shot.

 

In this quick tip, today, we are going to learn how to run the web application in multiple browsers from the Visual Studio IDE. Continue reading to know more about it.

Published by on under Tips | Visual Studio 2013