Need help with storing my codes and useful extensions

Posted by vaibhav_yadav_09@reddit | learnprogramming | View on Reddit | 3 comments

21M in my 6th semester of BTech. I am learning DSA from the Strivers sheet, and practicing the code in Leetcode and VS code. A lot of times it happens that while studying I have to write and understand a code multiple times with a little tweaking in each one of them. So I usually store them in .cpp files in VS code, but for revision it gets very messy to open each file then recall. I just wanted to know how you guys do this? I am a lazy person so I don't prefer writing all the codes in my notebook, instead storing them at a particular place with a subheading for each code would've been better, so any app or website to help me with this? Also, it would be really useful if you suggest some VS code extensions that I can add to enhance my programming journey.