I have the following differential equation
sol = NDSolve[{y'[t] == y[t] - 2*Exp[-t], y[0] == 1}, y, {t, 0, 10}]
Plot[y[t] /. sol, {t, 0, 4}, AxesLabel -> {"Time--->", "y(t)--->"}]
how to control the step size of NDSolve