admin管理员组

文章数量:1406951

I'm looking for a way to copy the full path of any variable.

The expected result is to have this value in the clipboard:

com.myproject.Class1#variable1

I'm looking for a way to copy the full path of any variable.

The expected result is to have this value in the clipboard:

com.myproject.Class1#variable1
Share Improve this question edited Mar 8 at 8:54 tyg 16.7k4 gold badges39 silver badges49 bronze badges asked Mar 8 at 4:34 Maher AbuthraaMaher Abuthraa 17.9k12 gold badges86 silver badges105 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

You can use Copy Reference to get this:

com.myproject.Class1#getVariable1

When the cursor is placed over a variable you can access it via the context menu's Copy / Paste Special entry or simply use the shortcut Ctrl+Alt+Shift+C.

I think that's the best you can get.

本文标签: copy pasteIs there a shortcut in Android Studio to get the full path of a variable or methodStack Overflow