This should give us great hope about facing temptation ourselves. The first step in being able to quote Scripture the way Jesus did is to read and study the Bible. In particular areas of weakness in your life. If your weakness is anger then you would focus on Scriptures having to do with anger. Then memorize these verses. When these verses are memorized, when situations arise that would make you angry you can reflect on those verses and proclaim them over your circumstance.
Why proclaim them? Simple... there is power in words. When God created the world He spoke it into being. We are made in His image meaning that our words are also very powerful. They have the ability to build up or tear down. When Satan tempted Jesus He didn't just close His eyes, think of a verse and Satan ran off. Instead he proclaimed the truth and then Satan left defeated. Speaking the Word of God over your life is very powerful.