Let $ \mathcal{C} $ be a nondegenerate quantum code. Is it true that $ \mathcal{C} $ has distance $ d $ if and only if $ d $ is the minimum nonzero weight of an error that preserves the codespace?
For a degnerate code this is certainly not true, for example the $ [[9,1,3]] $ Shor code has distance $d=3$ but there are nonidentiy Paulis in the stabilizer like $ ZZI III III $ of weight $ 2 $. So the minimum nonzero weight of an error that preserves the codespace is $ 2<3 $.
It is interesting to note that when the codespace has dimension 1 then the normal definition of distance is not well defined but the code is automatically nondegenerate and in the classic paper https://arxiv.org/pdf/quant-ph/9608006.pdf, on page 10, the distance of an $[[n,0]]$ code (a stabilizer state) is actually just defined as the smallest non-zero weight of any stabilizer of the code.
Update: I think DaftWullie is right that the way the question was originally asked is a bit circular. The correct way to ask it would be: Given a nondegenerate code of distance $ d $ is it true that the minimum nonzero weight of a linear operator that preserves the codespace must be $ d $?
Note: I define the weight of an operator to be $ n-\tau $ where $ n $ is the number of qubits in the Hilbert space and $ \tau $ is the number of qubits on which the operator acts trivially (up to global phase). So any multiple of the identity has weight $ 0 $. $ ZZIIIIIII $ has weight $ 2 $, and a generic linear operator has weight $ n $.