Based on NonGrate answer:
Go to settings, find the TODO settings and replace the existing todo entry " \ btodo \ b. * " With:
(\btodo\b.*)|(\/\*(\*(?!\/)|[^*])*\btodo\b(\*(?!\/)|[^*])*\*\/)
Result:

You must use * / to close the selection.
It uses 2 patterns:
- (\ btodo \ b.) commits any string with the word todo
- (/ \ * (\ * (/) | ?! [^ *]) * \ Btodo \ b (\ * (/) | ?! [^ *] * \ * /) captures multi-line comments starting with / * and ending in * /
Any other combinations may not work.
Note. You must replace the existing regular expression to avoid multiple instances of the same todo in the task list.
chaser May 30 '17 at 12:03 a.m. 2017-05-30 00:03
source share