Formatting the drive and restoring from your backups is the best way.
Assuming you have no backups to restore from then it Depends on which virus you have, there are several and some hide your true files/programs and leave with a shortcut and others actually hide and encrypt them...
The encrypting ones are the worst because without the key getting your files back is nearly impossible without paying the ransom.
The first thing I would do is run a virus scan and let it detect which virus you have. Do not let it remove the virus yet as it may be the only way to pay the ransom.
Once you learn which infection you have, look it up and see if its an encrypting type. If it is see if its been broken yet (some used 1 key for all infections). If it hasn't then you are stuck with losing your files or paying the ransom.
If its not an encrypting type then go ahead and use the specific virus removal tool if there is one, which should also unhide your files.