Currently, it is a huge challenge to develop a rapid and sustainable approach to prepare N/S co-doped mesoporous-dominated hierarchical porous carbons (NSMHPC) for supercapacitors. Herein, we innovatively adopted an in-situ template-assisted self-activation strategy to exploit multiple X-NSMHPCs (X = A, M, N) from different sulfate (Al