Some very bright Jetbrains folks were able to solve most of those issues. Check out their MPS IDE [1], its structured/projectional editing experience is in a class of its own.
[1] https://www.youtube.com/watch?v=uvCc0DFxG1s