I need help. When typing my code in cs50 ide, I've realized that typing the character y on my keyboard tend to delete a block of code from my hard written code
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
I encountered this issue in my classroom today. Restarting the IDE itself did not solve the problem. However, we were able to fix it by applying the following steps:
I wish I had an explanation as to why this worked, but I'm happy to say it did. If there's a more thorough explanation for this, I'd love to know more precisely what is happening.
File in the upper-hand corner of your CS50 IDE, and then click
Show File Revision History. You'll see a slider above your file, which you can slide back and forth to see your file revision history. When you reach a part of the revision history that you'd like to revert back to, simply click
Revert. You can also click the play button to the left of the slider to see your progress throughout the file. This will bring back any code you deleted.
As for your
y character, I'm not exactly sure why it deleted a block of code, but it could be a result of not restarting your IDE or not restarting your computer.
If you still have questions/issues, comment below.