Through studying the Shulchan Aruch one comes to fear of Heaven.
Sefer HaMidos, Torah Study, Part II §3