Let $X \subset \mathbb{C}^n$ be a smooth complex affine variety of dimension $m$. Let $$I_X \subset \mathbb{C}[z_1, \ldots, z_n]$$ be its ideal. Note that it is not always possible to find a set of generators $$I_X = \langle g_1, \ldots, g_r \rangle$$ such that $r = n - m$ is the codimension. In general, we only have $r \ge n - m$. But can we do this locally? That is:
Question. Can we cover $X$ by distinguished open sets $X_f$ such that by viewing $X_f$ as an affine variety in $\mathbb{C}^{n + 1}$, its ideal is generated by $n + 1 - m$ elements?
If not, is there a result of that flavour that I'm missing?