VS Add-on将光标下的标识符的全名复制到剪贴板 [英] VS Add-on to Copy full type name of identifier under the cursor into clipboard

查看:83
本文介绍了VS Add-on将光标下的标识符的全名复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有Visual Studio附加组件将光标下的标识符的完整类型名称复制到剪贴板中?请不要将我链接到 VS 2010-复制类/接口的完整类型名称的简便方法?我不想处理宏;仅加载项。谢谢:)

解决方案

最终,Visual Studio的对象浏览器将为您提供所需的东西。不幸的是,如果没有Resharper,任务可能会很繁琐。



如果您有Resharper,则可以为 EditorContextMenus.CodeWindow.NavigateTo.Resharper_NavigateToObjectBrowser 设置键绑定p>



要将属性,方法或类的全类型名称复制到剪贴板,请将光标置于相关位置...(例如)





现在按下新的键盘快捷键(在上面的示例中为CTRL + ALT-J)。





在对象浏览器中,您可以立即按CTRL + C复制您想要的内容剪贴板。



现在翻转到任何ol'应用程序,然后按CTRL + V粘贴内容。



< img src = https://i.stack.imgur.com/xWEv5.png alt =在此处输入图片描述>


Is there a visual studio add-on to copy the full type name of the identifier under the cursor into clipboard? Please DO NOT link me to "VS 2010 - easy way to copy full type name of a class/interface?" I don't want to deal with macros; only add-ons. Thanks :)

解决方案

Ultimately, Visual Studio's Object Browser gets you what you want. Unfortunately, the task might be cumbersome without Resharper.

If you have Resharper, you can set up a key binding for EditorContextMenus.CodeWindow.NavigateTo.Resharper_NavigateToObjectBrowser

To copy the full type name of a property, method, or class to the clipboard, position your cursor in the relevant spot... (for example)

Now press your new keyboard shortcut (CTRL+ALT-J in my example above).

Once in the object browser, you can press CTRL+C immediately to copy what you want to the clipboard.

Flip over to any ol' application now and press CTRL+V to paste the contents..

这篇关于VS Add-on将光标下的标识符的全名复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆