When copying for Markdown/Stack Overflow, find a way to add in using-directives and references
The menu item for "Copy for Markdown/Stack Overflow" ends up copying code that in most cases won't compile without manual intervention by the person who grabs it off of Stack Overflow.
Specifically, these two things is on the query options tab, and has to be manually added for the query code to compile and execute:
- Using directives
It would be nice if those two things could be copied alongside the query code, for instance as specially crafted comments at the top, that would be recognized by LINQPad upon pasting back into it, and moved to the appropriate places.
// reference: <RuntimeDirectory>System.Runtime.Numerics