How to get multiline TODO's in Resharper 8

半腔热情 提交于 2019-11-30 08:35:26

I figured out the answer, easier than I thought

Orignal regex for todo's in resharper (?<=\W|^)(?TODO)(\W|$)(.*)

It is possible to do this using just regex...

Go into Resharper -> Options -> To-Do Items and change the existing regex to

(?s)(?<=\W|^)(?<TAG>TODO)(\W|$)(.*)

The (?s) option allows for mutliline TODO's

The format of the todo is

        /* TODO: a Multiline
         * to do list must use the block comment style
         * though it will appear spaced out in the To-do explorer
         * it will color code it all correctly
         */
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!