The following should work.
@{
//TODO: do stuff here
}
or
@{/* TODO: do stuff here */}
As it first has to go into “code” mode, and then you can use a task comment.
But apparently the following does not work (in my visual studio):
@*TODO: do stuff here *@