Showing posts with label Visual Studio 2013. Show all posts
Showing posts with label Visual Studio 2013. Show all posts

Wednesday, September 19, 2018

Enable code preview with the Visual Studio enhanced scroll bar

Introduction
This is the first time that I saw code preview through scrollbar in Visual Studio. I have use most of the Visual Studio IDE starting from Visual Studio 2002 and scrolling of code files done using the classic scrollbar.
Starting from Visual Studio 2013, an enhanced scrollbar feature is enabled but I was not aware of it till now. Recently I saw below code preview features through a wide scrollbar:
image
Enabling Visual Studio scrollbar code preview mode
By default, this feature is not enabled so that I have not used this cool feature before. Actually, it requires to switch the scrollbar mode and below are the steps to switch scrollbar mode:
  1. Open option using Tools menu and select “Options”
  2. In the options dialog select the Text Editor | All Languages | Scroll Bars node from left side menu
  3. Now change the scrollbar behavior to map mode and check the “Show Preview Tooltip” checkbox as shown in below image.
    Visual Studio enhanced scrollbar
I found it a cool feature which enables the developer to view the see the code in tool-tip by hovering on the scrollbar without scrolling down to the bottom of the code file.

You can find detailed information at Visual Studio scroll bar customization documentation.





Thursday, July 9, 2015

How to resolve “The 'DesignerPackage' package did not load correctly” issue??

It was the today morning I just start preparing to do my work and opened Visual Studio. Now what I found that there was lots popup showing the error for load fail of the designer packages respectively.

The error  was “The 'DesignerPackage' package did not load correctly” and I did following trick to solve this issue in Visual studio 2013. If you are using older version then look for 11.0 or 10.0 folder for this “ComponentModelCache” directory.

  1. First open windows explorer and go to “C:\Users\<your users name>\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache”.

    Remove_ComponentModelCache
  2. Delete all the files located in this folder after closing the visual studio.

After doing this start your visual studio and all errors went away.