also every time i plug it it in it resets so i have to redo the starting thing again
That’s ok — it’s actually supposed to show up as a drive/file. That is one of the ways you can put a program on it. See the “Drag and Drop” video here: https://microbit.org/get-started/first-steps/set-up/. If the micro:bit is used to collect data, the file/drive can also be used as a way to get the collected data, which is described here: https://microbit.org/get-started/user-guide/data-logging/.
The microbit program will restart anytime it gets power. So if it’s not connected to a battery and you plug in a USB cable, it will restart. If you use the online version of MakeCode (or Python) and connect to the micro:bit using USB (rather than drag-and-drop) it will also reset the micro:bit when it connects.
In many cases restarting is normal and ok. If there’s some problem and you don’t want it to restart, you might describe what the problem is and maybe someone can give some suggestions.