How to get multiline TODO's in Resharper 8

后端 未结 1 769
你的背包
你的背包 2020-12-31 04:24

I have be trying to figure out how to change the regular expression in the Options -> To-Do\'s in resharper to color code and allow for multiple lines in a todo.

Any

相关标签:
1条回答
  • 2020-12-31 05:09

    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
             */
    
    0 讨论(0)
提交回复
热议问题