How do I write comments in a SpecFlow Feature?

I'd like to include some comments in a SpecFlow feature.

I get the the following error:

Custom tool error: Parsing error near '/*'

I've tried the following:

// comment
/* comment */
-- comment
' comment

How do I do this?


Solution 1:

As stated by sarfest above - its simply #-sign for comments.

There are no multiline comments but that's easily solved if you can do a vertical selection (hold down ALT-key and select in Visual Studio). Vertical select and the enter a #-sign.

Additional information: the line has to start with a #, and optionally any whitespace. This means you cannot combine comments with actual code on the same line.

Solution 2:

also, if you want to perform multiline comments in an easy way (on visual studio),

you can select the lines to be commented, and hit CTRL+K+C to comment, CTRL+K+U to Uncomment.