>>319760209
It comes with a short charging cable (about a foot or two at most). You probably wouldn't be able to even sit down comfortably at your PC with it.

To connect it with your PC either buy the official link cable, a knockoff, or use Virtual Desktop. All three have their merits and downsides.
 
Official - has a copper line running along the fiberoptic line that recharges it during use, somewhat. Extends playtime to 6 to 7 hours up from the normal 2. Pricey though.

Knockoff - you can hook it up to your PC, getting various results. If it's just the optic cable though, no recharging. Cost varies.

 V.D. - wirelessly connect to your PC. Probably a bit slower than a link cable, but is wireless. 2 hour playtime as you aren't charging. May drop more often. Not free (19 dollarinos I believe).