Blog Archives

Visual Studio 2015 RC and the Task List

I am currently using Visual Studio 2015 RC and have notice something that is kind of annoying.  It seems the Task List window does not want to populate as quickly as previous versions.  I have not noticed a pattern yet, but I did submit it as a bug.

In the screen shot below I don’t think it picked up that //TODO for an exceptionally long time.  Normally it seems to take a while to pick up my custom tasks, like //INFO.

Missing Task in List

Missing Task in List

Advertisements

Visual Studio 2015 Window Layout

I have to admit I was wrong about the significance of the new Window Layout functionality in Visual Studio 2015.  As it turns out I really have been using this feature.

Window Layout

Window Layout

Visual Studio Safe Mode to the Rescue

Today while using Visual Studio 2015 CTP 6 I encountered a problem.  It kept crashing.  I know earlier today I had installed several extensions; two of which did not come from Microsoft or Microsoft employees.  Naturally I suspected some extensions.

Command Line to the rescue.  You simply start Visual Studio from the command line with the flag to start in safe mode.  Once it comes up you can remove those suspect extensions.

Visual Studio 2015 Break Point Intellisense

I know we have intellisense in Visual Studio 2013 for the break point Condition, but we do not have it for the Action.  I was toying around with 2015 and noticed we now have it for the Action as well.

This is very useful for creating output messages to the debugger window.  In the screen shot below I have an object called myObject.  This object has three properties, an Id, a Name, and a CreatedDate.

Point intellisense

VS 2015 Break Point intellisense

Breaking Into Your Lambda

I just learned something new today at Microsoft Virtual Academy.  Heck I almost always learn something new or even things I forgot at Microsoft Virtual Academy.  In this case I thought it was pretty neat.  We all use break points throughout our code, most of the time I just break on a line.  I just learned how to break into a Lambda expression.

Basically you click inside your Lambda expression and then press F9.  To show this I will create a quick class called Stuff.

    public class Stuff
    {
        public string Name { get; set; }
        public int Quantity { get; set; }
    }

In another area I am going to use this class to create a List<Stuff> and then use a Lambda on that list.

            List someStuff = new List()
                            {
                                new Stuff{Name = "Dice", Quantity = 2}, 
                                new Stuff{Name="Cards", Quantity = 52}, 
                                new Stuff{Name = "Tokens", Quantity = 20}
                            };

            var result = someStuff.Where(s => s.Name.Length > 4);

Next I click in my Lambda and press F9, below is a screenshot of the break point inside my Lambda.

Breaking Into Lambda

This was a great extension for Visual Studio 2010 so I am certain it will be for Visual Studio 2012.

http://blogs.msdn.com/b/visualstudio/archive/2012/11/07/productivity-power-tools-2012.aspx