How to copy error message in Android Studio tooltip - android-studio

How can you select or copy the error tooltips that appear when hovering over code in Android Studio?
For example:
Is there a key command? I'm on Mac if that's relevant.
Thanks!

On Windows: try,
Hover over the yellow popup text
Alt+LeftMouseClick
The 'yellow text' should now be on your clipboard, ready to paste.
That is it!

The older solutions don't seem to be working for me. Not sure if the behavior changed, but here is what is working for me on a Mac with Android Studio 3.4:
press control + option simultaneously
hover over the text that has an error
click on the tooltip when it pops up.

On Mac, a slightly different dance than Windows.
hold shift
click and hold towards the end of the text(probably missing last character)
keep holding mouse click and release shift
while holding mouse click, press Command + C to copy
paste wherever

Ubuntu:
When you make the popup shows up, hold Alt+Shift and carefully select any amount of the text and press Ctrl+C.
You don't need to select all of the text, because it will always copy the whole message ignoring the selection.
Tested on Ubuntu 18.04.3 LTS and Android Studio 3.5.2.

Once popup shows up, move your mouse pointer over it and simply select (mark) bubble's text, then do Copy with keyboard shortcut (CTRL+C on Windows or Command+C on Mac) while still having mouse pointer over the bubble.
Not sure how on Mac, but on Windows it works that way for me, with the exception that you need to keep mouse pointer over the bubble all the time otherwise it is gone (which sometimes forces me to copy all but last character from that message).

On Ubuntu, try
Hover on the error or warning popup text
Maintain CTRL to keep it displayed
Use the cursor to select the text

Related

Why is my Android Studio emulator screen only visible in the task bar

I am trying to run my Android Studio applications using my emulator. But when i try to run it emulator only shows up like this:
Emulator stuck in taskbar - Windows 10
I have created multiple Virtual devices though..and all of these have same issue. Sadly, I have no control over my emulator except if i hover over it then only the screen for emulator is displayed but the view is minimized and as soon as I move my mouse away or even if i double click the screen nothing happens. By the way i'm using windows 10 and Android Studio 3.6.3. My problem is similar to Android Studio emulator gets stuck minimised in task bar. But this question has not been helpful to me in fixing my problem.
Mabye it opens somewhere else: Try the following:
- Press SHIFT+CTRL
- Right Click on the Program showing up in the taskbar.
- Select the "Move" Window option
- Use the keyboard (Left Arrow/Right Arrow) <-/ -> keys to move the window to the center of the screen.
- Try holding down the left arrow key for a while to see the Window outline. Try moving right/up/down if the window outline is still not visible.
- Hit enter when you can see the Window outline move to the center of the screen.
It appears that the desktop extends beyond the Screen Display and the program window seems hidden. Moving the Window either to the Left / Right / Top/ Bottom of the screen helps.
Coppied from here.

Removing two finger touch on Android Emulator

I am running Linux Mint and are creating flutter apps. Once in a while when I change my workspace (CTRL + ALT + Left/Right) away from my android emulator then this weird tracer starts appearing and I can't get rid of it without closing everything on the emulator. The tracer follows my cursor and reacts to right click etc.
Has anyone any idea what this is?
Update
I just noticed that they are representing two fingers. How to get rid of it though?
It's a bug I think. It should only appear when you press CTRL button and disappears as soon as you release the CTRL button. To get rid of this press the zoom button once.

Android Studio uses the first keyboard layout for shortcuts hotkeys

I have multiple keyboard layouts defined for my OS. Two of them are English Querty and Dvorak. The problem that I have is that the shortcut keys of Android Studio, always work with the first layout, even if the second one is active. All other applications honor the selected layout and don't have this problem.
For example, I have selected the second layout which is Dvorak:
Now in Android Studio I enter Ctrl + Z to undo something. But the shortcut for Ctrl + / gets triggered because Z in Dvorak is defined in the key / in Querty.
Is there a way to fix this problem?
P.S: I'm using Ubuntu 19.04.
Hi you are right Go to Ubuntu settings / Keyboard drag and drop what you want to use which keyboard layout to first row. it is done.

Sublime Text 3 - when I move the mouse left and right, editor window scrolls left and right

When using Sublime Text 3 - when I move the mouse left and right, editor window scrolls left and right instead of simply moving the mouse pointer where I want it to go.
This behavior only started after last reboot, and I did NOT update Sublime recently.
Windows 10 in VDI mode.
I don't observe that behavior in any other software I use.
If installed try removing the PlainTasks plugin. In my case this solved the issue. The latest update which came in via Package Control came with the unwanted feature to block the left mouse button in the editor window.
I think generally it's no mistake to check all the installed plugins when this issue occurs.

Sublime text 3 find and replace in selection without clicking the button

I'm using ST3 with vintage mode. When selecting some lines and pressing alt+shift+f (Mac OSX) I get the find and replace dialog at the bottom of the screen.
BUT, I have to remove my hand from the keyboard, reach for the mouse and click the little "In selection" button...
...is there some way for sublime to realize that I have made a selection and have that button clicked by default?
Try setting:
"auto_find_in_selection": true,
From my understanding, this will automatically use 'in selection' if you have non-empty selection when goes into find box.
[Edit]
Note, you generally set this settings in "Preferences.sublime-settings". You can open this setting by "Ctrl+Shift+P", and select "Preferences: Settings - User".

Resources