Faulty Folding of Function when } has been commented out
-
Hi Guys, (or Girls… whomever reads this)
Wanted to know if anybody else noticed this one:
Paste the following in a new sheet, set the language to c# and use the fold/unfold functions. You will see it still recognises the //} even though it has been commented out. I dont believe that is correct, so i wanted to let you know.
test
{
{
//}
}
}You might want to put some tabs and additional line breaks in it for clarity when you are testing.
-
Short answer, its not a bug, it is a feature. You can define custom code fold points by using
//{and//}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login