Selective synthesis of indoles and quinazolines was achieved through a precise control of C–H activation/annulation by changing additives.