开发者

Resharper and Custom Live Template Not Working

Working with Unity, I thought it would be a good idea to create some LiveTemplates to help out with creating configuration entries. For example, I want to create some typeAlias elements in a file called "unity.config":

      <typeAlias
           alias="QueryService"
           type="type,QueryAssembly"/>

So, I created a live template: Shortcut: typeAlias Available "in all file开发者_开发问答s"

<typeAlias alias="$ALIAS$" type="$TYPE$,$ASSEMBLY$"/>

the unity.config file is an XML file. I put the cursor in an empty spot and type "typeAlias" and then the tab key. Nothing happens.

Any ideas?


Figured it out..

The file I was testing this with was not part of a project, but was added as a solution item. I tested the above live template in an item in a project and it did in fact work!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜