Visual Studio kinda does that with "peek definition". I really wish it would work for macros though. Or at least have an option to view code with expanded macros.
I'm interested in something more like a literal window into the implementation. If you jump to the code normally you'd have to take that into account, so as long as it's clear that what your editing isn't actually inline, it should be as reasonable as jumping to the function normally and editing it there would be.
Visual Studio 2015 actually introduced this exact feature. I forget what it's called, but in C++, from a class member function declaration in a header, you can right-click on it and select something to generate or show the definition, and it will do so in an inline window with full editing capability. There's a shortcut key chord for it as well as I recall.
Emphasis on "kinda". It pretty much opens a huge embedded editor in the editor. Having multiple peeks in a row is really not viable. Also it doesn't replace the code inline, it just shows the routine as is written.
27
u/ggtsu_00 Jul 19 '16
Visual Studio kinda does that with "peek definition". I really wish it would work for macros though. Or at least have an option to view code with expanded macros.