To begin with, the identity in the OP is not true for all functions, so there is no hope of proving it generally. If you want to prove the statement to see where the $2\pi$ comes from, you'll need to say which set of functions you're working with.
So, instead of giving a general argument, let's look at one particular function for which the Fourier inversion theorem holds and see if we can identify where the $2\pi$ enters in. Consider the integral
\begin{align}
\int_{-\infty}^{\infty} \left(\int_{-\infty}^{\infty} e^{i(k - k')x} dx \right) e^{-k^2} dk
\end{align}
We compute
\begin{align}
\int_{-\infty}^{\infty} \left(\int_{-\infty}^{\infty} e^{i(k - k')x} dx \right) e^{-k^2} dk
&= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{i(k - k')x} e^{-k^2} dx dk
\\&= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{i(k - k')x - k^2}dx dk
\\&= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{-(k^2 - ixk + ixk')}dx dk
\\&= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{-\left(\left(k - \frac{ix}{2}\right)^2 + \frac{x^2}{4} + ixk'\right)}dxdk
\\&= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{-\left(\left(k - \frac{ix}{2}\right)^2\right)} e^{-\left(\frac{x^2}{4} + ixk'\right)}dxdk
\\&= \int_{-\infty}^{\infty} e^{-\left(\frac{x^2}{4} + ixk'\right)} dx \int_{-\infty}^{\infty} e^{-\left(\left(k - \frac{ix}{2}\right)^2\right)} dk
\\&= \int_{-\infty}^{\infty} e^{-\frac{1}{4}\left(x^2 + 4ixk'\right)} dx \left( \sqrt{\pi} \right)
\\&= \sqrt{\pi}\int_{-\infty}^{\infty} e^{-\frac{1}{4}\left(\left(x + 2ik'\right)^2 + 4k'^2 \right)} dx
\\&= \sqrt{\pi} e^{-k'^2} \int_{-\infty}^{\infty} e^{-\frac{1}{4}\left(x + 2ik'\right)^2} dx
\\&= \sqrt{\pi} e^{-k'^2} \sqrt{4\pi} = 2\pi e^{-k'^2}
\end{align}
In other words
$$
\int_{-\infty}^{\infty} \left(\frac{1}{2\pi}\int_{-\infty}^{\infty} e^{i(k - k')x} dx \right) e^{-k^2} dk = e^{-k'^2}
$$
So, if it is indeed the case that
$$
\int_{-\infty}^{\infty} e^{i(k - k')x} dx = C \delta(k - k')
$$
for some constant $C$, then
$$
e^{-k'^2} = \int_{-\infty}^{\infty} \left(\frac{1}{2\pi}\int_{-\infty}^{\infty} e^{i(k - k')x} dx \right) e^{-k^2} dk = \int_{-\infty}^{\infty} \left(\frac{1}{2\pi}\left(C\delta(k - k')\right) \right) e^{-k^2} dk = \frac{C}{2\pi} e^{-k'^2}
$$
which implies
$$
C = 2\pi
$$
We have shown that the prefactor in the OP's identity must be $2\pi$. But it is perhaps still not clear why. I think the best I can say at this time is that all functions for which the identity is true behave like $e^{-x^2}$ for large $x$. See, for example, https://en.wikipedia.org/wiki/Schwartz_space.