Visual Studio: Add necessary using directives with macro

Posted by Kiril on Stack Overflow See other posts from Stack Overflow or by Kiril
Published on 2010-04-19T09:01:17Z Indexed on 2010/04/19 9:03 UTC
Read the original article Hit count: 317

Filed under:
|
|

Hello guys,

I am trying to do the following. Imagine you are reading some LINQ article and you decide to copy/paste some code from the article to a newly created project. In most cases, if you directly compile you will probably get an error for missing a using directives or assembly reference. I am trying to optimize the process where I have to go each keyword, click on it with the mouse and hit Shift + Alt + F10 to add the using directive. I know that it is not that much pain, but for the sake of optimization, is it possible and at what cost?

Best Regards,

Kiril

© Stack Overflow or respective owner

Related posts about visual

Related posts about studio