what sort of car with what engine?
depending on how modern it is, plugs and leads you've covered, other candidates are coil packs, idle air control valve (common on nissans), mass airflow sensor. hell if it's an auto, there could be electronic issues there too, messing with the idle.