image

I really like the Code Rush dynamic type stuff, introduced with version 2, but I never really understood how it worked until this week.

I often find that I use the "pl." family of templates and then go back to change the List<> to an IList<>. I got tired of this, so decided to see if there was a way I could add IList<> as a mnemonic somehow.

After checking out the "p?Generic1Type?" template, and reading the description, I saw somewhere that it read the list of type mnemonics from a dynamic list. I then found this forum post, where Marc Miller explains where to find the list.

So I added "il" as a mnemonic for "IList". Now I can type "pil." and get an IList<> property, or "mil." and get an IList<> returning method, or "pild8" and get an IList<DateTime> property.

The only tricky part was figuring out how this Dynamic Lists dialog works. The add button is disabled. After staring at it for 5 minutes, trying to figure out how to enable it, I tried changing the mnemonic of an existing one, and suddenly add was enabled.