Pompey eased past struggling Swindon to move to within a point of the top two.
Ronan Curtis opened the scoring after Charlie Daniels' free-kick had been flicked on by John Marquis.
And Ellis Harrison completed a 2-0 victory for Kenny Jackett's side from the penalty spot following a foul on Ryan Williams.