Is A4988 and DRV8825 Current Limit Setting RMS or Peak?
If you look at DRV8825 datasheet you have detailed specification. At full step, the currents in both wingdings are 71% of the current setpoint value, meanwhile at 1/32 micro stepping the current is 100%, but it is sinewave like - AC. 

For sine AC waveform it is true that \$I_{RMS}=0.707\cdot I_{peak}\$. 

The total max. current is the sum of both phases. For full step it is equal to 1.41*I_set. For microstepping it is also 1.41*I_set.

The motor data is referring at full step current if not noted otherwise, therefore total of 2.8A, which turns into Iset=2A irrespective which mode you will use. The total flux will be unchanged, since it is the vector sum of both phases. The RMS current sum will be little lower when using microstepping.


full step : \$I_a=I_b=0.707\cdot 2A=1.41 A\$ Square pulses 
\$I_{RMS}=2\cdot 1.41=2.82A\$


microstepping \$I_a=2A\cdot sin\omega t\$ ,  \$I_b=2A\cdot cos\omega t\$
\$I_{RMS}=\sqrt{I_a^2+I_b^2}=\sqrt{2A^2\cdot (cos^2\omega t+sin^2\omega t)}= \sqrt{2A^2\cdot (1)}=2A\$





Image source