Category Archives: Visual Studio

VS2010 Tips #8: Got annoying Visual Studio 2010 error? Try to run in Safe Mode

Sometimes not well-coded extensions/add-ons can cause very annoying error. If you got any error in running Visual Studio 2010, especially if you use lot of 3rd party extensions/add-ons, then running Visual Studio 2010 in Safe Mode will be worth to try.

The Safe Mode will disable all extensions, that way you will know whether the error you got is Visual Studio error or caused by installed extensions.

To run Visual Studio in Safe Mode, you can type devenv.exe /safemode in Visual Studio command line or from Run window.

image

More about running Visual Studio in Safe Mode:
http://msdn.microsoft.com/en-us/library/ms241278.aspx

VS2010 Tips #6: Easy way to troubleshoot Visual Studio 2010 issues

Incompatible add-ons or system configurations can cause Visual Studio issues (performance issue, error, etc).

Fortunately we can try to troubleshoot the issues by referring to the Visual Studio activity log.

Simply run the following command to run Visual Studio 2010 and log its all activities.

image

The log file will be generated to:

XP

%USERPROFILE%\Application Data\Microsoft\Visual Studio\10.0\ActivityLog.xml

Vista & Windows 7

%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml

You can also specify where you want the log file to be generated

image

Once you run it, 2 files will be generated

image

And when you open the ActivityLog.xml, it will contain something like this:

image

Hope this helps.

VS2010 Tips #5: No Intellisense in Visual Studio 2010? Fix it now!

By default Visual Studio 2010 comes with Intellisense feature enabled. By the way, there are some cases that it’s disabled – can be caused by anything (setting changes on add-in installation, importing settings, human error, your teammate :), etc).

The fix is simple, just open the Tools -> Options, then go to the Text Editor section. Select All Languages or specific language (in this example C#).

image

Then make sure Auto list members and Parameters information are checked. Click OK and it should be working now.