If you don't declare a variable all it does is appear in red text, so I don't see it as being a huge issue in any case (as you more or less said). If the suggested alternative to declaring a variable in code is to declare it in the editor, then it seems to me that you end up expending the same amount of effort anyway, but for a less effective result.