I was wondering whether the Schwartz functions are also dense in $$\{f \in L^2(\mathbb{R}^n); \int_{\mathbb{R}^n} |x|^2 |f(x)|^2 dx + \int_{\mathbb{R}^n}|\xi|^2 |\hat{f}(\xi)|^2 d \xi < \infty\}$$
where the norm is given by $$||f||_{L^2}^2 = \int (1+|x|^2) |f(x)|^2 dx + \int (1+|\xi|^2) |\hat{f}(\xi)|^2 d \xi.$$
If we would only have one summand, then this would be a $H^1-$ Sobolev summand norm and for this space it is of course true, but what about this case here, where we have an additional term in the norm?
I suspect it is true, but how can I see it?
Edit: I want to note that the argument given in the comments is incomplete.