You can use it to farm as well. You want to try to use normal autos to last hit, if you feel like you might open yourself to harass for a CS, Q for the shield and last hit the minions you need to before backing out.
I like to pull my sword behind my opponent's wave or next to it so that I can pressure them into missing CS or giving me an advantageous trade. However, note this will not work with everyone so keep their tools in mind.
Q is the ability you use most but must also use wisely. Don't use it willy-nilly because you will be left with not enough energy for your E or another Q.
Also, try pulling your sword into the bush closest to your opponent's turret before minions spawn if you're not leashing your jungler. I always do it and it gives you a potential first trade rather than lugging around Q awkwardly at level 1.