Derive Fourier transform of sinc function
Since sinc is an entire function and decays with $1/\omega$, we can slightly shift the contour of integration in the inverse transform, and since there's no longer a singularity then, we can split the integral in two:
$$\begin{eqnarray}\int_{-\infty}^\infty e^{i\omega x}\frac{e^{i\omega/2}-e^{-i\omega/2}}{i\omega}\mathrm{d}\omega &=& \int_{-\infty+\epsilon i}^{\infty+\epsilon i} e^{i\omega x}\frac{e^{i\omega/2}-e^{-i\omega/2}}{i\omega}\mathrm{d}\omega\\\ &=& \int_{-\infty+\epsilon i}^{\infty+\epsilon i} e^{i\omega x}\frac{e^{i\omega/2}}{i\omega}\mathrm{d}\omega - \int_{-\infty+\epsilon i}^{\infty+\epsilon i} e^{i\omega x}\frac{e^{-i\omega/2}}{i\omega}\mathrm{d}\omega\;. \end{eqnarray}$$
Now we can apply different substitutions to the two parts, $\omega'=\omega(x+\frac{1}{2})$ in the first part and $\omega'=\omega(x-\frac{1}{2})$ in the second part. That transforms the integrand into $e^{i\omega'}/(i\omega')$ in both cases. Now if $x$ lies outside the rectangle, the signs of the factors in the substitutions are the same, so the two integrals stay on the same side of the origin and go in the same direction, and hence yield the same value and cancel to $0$. But if $x$ lies inside the rectangle, then there's a sign change due to $x-\frac{1}{2}$ but not due to $x+\frac{1}{2}$, so we get
$$\int_{-\infty+\epsilon i}^{\infty+\epsilon i} \frac{e^{i\omega'}}{i\omega'}\mathrm{d}\omega' + \int_{\infty-\epsilon i}^{-\infty-\epsilon i} \frac{e^{i\omega'}}{i\omega'}\mathrm{d}\omega'\;,$$
which is (again using the sufficient decay at infinity)
$$\oint \frac{e^{i\omega'}}{i\omega'}\mathrm{d}\omega'$$
on a contour that encloses the pole at the origin, and hence the value is $2\pi$.
I think you can have a look at this post: http://eagle.lamost.org/?p=38679
Every steps for the Fourier Transform is clearly shown.