Then when he says, but you have fully known my doctrine, he shows that Timothy is ready to resist in the face of such dangers: first, he shows that he was fit to be appointed an apostle; second, from his familiarity with the Scriptures, at because from your infancy (2 Tim 3:15). In regard to the first he does two things: first, he shows that he was carefully instructed by the Apostle; second, how he could be instructed by others, at all that will live godly in Christ shall suffer persecution. In regard to the first he does two things: first, he shows how he was instructed by word; second, by e...xample, at purpose.
But it should be noted that one is instructed by word in two ways: in one way, to learn the truth; in another way, to do what is just. In regard to the first he says, you have fully known my doctrine, i.e., have been instructed in the Catholic faith, so it should be easy for you to avoid them. In regard to the second he says, and my instruction. For instruction is knowledge about doing things which fall under man's control: everywhere and in all things I am instructed (Phil 4:12).
He shows also how he was instructed by example: first, in regard to doing good; second, in regard to enduring evil: patience. In regard to doing good he mentions two things: first, the right intention; and in regard to this he says, purpose, which is concerned with the end: I purpose, therefore, to take her to me to live with me (Wis 8:9). But one's purpose is achieved by good works which flow from three virtues: from faith, hope and charity. First, he mentions faith when he says, faith: without faith it is impossible to please God (Heb 11:6); second, hope when he says, longsuffering, which waits for a long time: in longsuffering (2 Cor 6:6). Third, charity when he says, love: he that loves not abides in death (1 John 3:14).
Source: Commentary on 2 Timothy