Cosmetic? Visual Studio fixes layout problems in a few keystrokes but it can't fix, say, poorly named variables.
That I think the editor should take care of. For more serious issues like your example of poorly named variables, there's nothing it could do (and is really the core of the problem, as you pointed out).
Golang apparently enforces a visual style. To a certain extent, Python does as well.