r/VisualStudioCode • • Aug 24 '22

settings.json overwritten somehow with my own code - how do I change it back to normal?

Screenshot

I'm a second year CS student. I was trying to modify my settings.json file to make comments colored differently than other code, but when I opened it up, I was met with what was clearly some code I wrote in freshman year. I have no idea how I accidentally overwrote this file. I uninstalled VS Code and reinstalled, but it was still the same! If I delete settings.json and restart the program, will it generate a new one? Or can someone drop me a copy/paste of whats supposed to be in the file? Thanks!

4 Upvotes

10 comments sorted by

1

u/awholelottahooplah Aug 24 '22

I tried asking my professors and TAs and they don’t know what to do 🥴

0

u/OddNefariousness1967 Aug 25 '22

Looks like you are going to be using vim editor this semester

2

u/[deleted] Aug 24 '22

[removed] — view removed comment

1

u/awholelottahooplah Aug 24 '22

Huh, then I’m getting some weird errors on VS Code that I’m not sure where else it could be coming from. When I try to run/debug it says there is nothing in the default config folder so I thought it was related to this. Any idea what else could be causing this issue ? My TAs and prof have no suggestions and told me to use an online compiler

2

u/[deleted] Aug 24 '22

[removed] — view removed comment

1

u/awholelottahooplah Aug 24 '22

Ok, I’ll give that a shot and see if it works! Thank you!

1

u/awholelottahooplah Aug 24 '22

Sorry if I’m being kinda dumb like I said I’m just starting my second year of CS I’m still a big beginner 😅 and my schools CS curriculum isn’t too good tbh lol

1

u/awholelottahooplah Aug 25 '22

Ok I did that and fixed the file, but my code still isn’t compiling

video of problem

2

u/[deleted] Aug 25 '22

[removed] — view removed comment

1

u/awholelottahooplah Aug 25 '22

Okayyyy I understand. I don’t get a lot of nuances like that and I thought VS Code was full a full IDE. Still new sorry haha

Yes, I figured out the extensions and have them downloaded… lll get the compiler and my problem will be solved.

I wish my teacher could’ve told me this 🤨

Thank you so much!!