簡體   English   中英

是否有Visual Studio或Resharper快捷方式將當前類型和成員復制到剪貼板?

[英]Is there a Visual Studio or Resharper shortcut to copy the current type and member to the clipboard?

例如...

public class TestClass
{
    public void Method1()
    {
        // Cursor is here or on Method1
    }
}

我想要一種方法將“TestClass.Method1”復制到剪貼板。

沒有內置功能可以做到這一點,但在ReSharper 8中有類似的東西 - 您可以將XML-Doc ID復制到剪貼板,例如:

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

將插入符號放在Main ,然后選擇此菜單:

M:ConsoleApplication1.Program.Main(System.String[])復制到剪貼板。

希望(有點)幫助......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM