VS Add-on to Copy full type name of identifier under the cursor into clipboard [closed]

我们两清 提交于 2019-11-30 04:48:14

问题


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 :)


回答1:


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..



来源:https://stackoverflow.com/questions/6948428/vs-add-on-to-copy-full-type-name-of-identifier-under-the-cursor-into-clipboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!