How to not forget the ; at the end of c# code

Um, so every time I work on something here, they would say have you blah blah blah and show some code errorsโ€ฆ :sweat::sweat:
Apparently, I missed the ; at the end of some lines of code. :sweat_smile::sweat_smile:
How can I make myself remember to do it? :smile::smile:

Thank you for your help!! :grin::grin:

Hi, Iโ€™ve had similar trouble with closing tags and parentheses before, too. I managed to minimize that error by typing out the syntax structure first then I would type the rest, example in JS I would do this first:

if () {
};

then add code to it.

Now, even when writing a text, whenever I hit an opening parentheses I would automatically close it before writing anything in them.

2 Likes

Thanks! :grin::grin:
So youโ€™re saying I need to write ; first so I donโ€™t forget?

1 Like

Yes, whenever you know itโ€™s going to be needed, put that there first then type the rest before it. :slight_smile:

Yeay! Thanks for your help! :laughing::laughing:
I appreciate it! :laughing::laughing::blush:

1 Like