An effective and regioselective strategy for trifluoromethylation and perfluoroalkylation of isoquinolines and heteroarenes was developed.