Nationals starting pitcher Stephen Strasburg left Friday night's game against the San Francisco Giants after two innings with a shoulder injury.