Resharper in VS not reformatting section of code

62 Views Asked by At

I've recently reinstalled resharper and have kept as many of my original VS settings as possible, including short cut keys. I'm trying to use coding conventions as specified by MS.
I have a list as a class member and ctrl + K, ctrl + D will not do anything to it. It compiles, no errors, runs as it is supposed to, I just cannot it to reformat.

enter image description here

An abridged version of the list follows:

public static List<MyList> MyLists => new List<MyList>
{
    new MyList()        {
        Name = "name1",
        Categories = new List<Category>()
        {
            new Category() {Name = "fee"},
            new Category() {Name = "fi"}
        }},
        new MyList()
{
        Name = "name2",
        Categories = new List<Category>()
        {
            new Category() {Name = "fo"},
            new Category() {Name = "fum"}
            }
    }
};

I'm wondering if anyone knows of a setting that may apply to this type of formatting.

Okay so it reformats with Ctrl + E, F but not ctrl + K, ctrl + D, so why doesn't ctrl + K, ctrl + D work on this code?

0

There are 0 best solutions below