Copy warning message when you hover over a WORD in Android Studio using Mac - android-studio

Not sure if this question was already answered in the past but I was not able to find anything on it. I wanted to know if there is a possibility to immediately copy a warning that appears under some "words" in Android Studio?
Example:
Is there a Mac keyboard shortcut to copy that 'android.support.v4.app.ActionBarDrawerToggle' message?

This is an IntelliJ inherited problem. You can find a workaround here.
Basically, click on the error/warning in order to have the cursor on it. Then you will find the same message in the message bar on the bottom. Right-click and copy

Alt+click(left button of the mouse) on popup copies the whole text. Tested on android studio 3.6 windows 10.

I think it is possible to mark it with the mouse and while you still hold the mouse button down press cmd + c.... but in fact this is not a shortcut.

Related

I've accidentally added a number label in front of a file in Android Studio and I'm not sure how to get rid of it

I was trying to refactor a filename in Android Studio when I accidentally mistyped the keyboard shortcut.
Since I have a 75% keyboard, I don't have F rows. So I tried to hit Shift+FN+6, which would result in inputting Shift+F6, which is the keyboard shortcut for refactoring. But because of my typo, I hit some other keyboard command. Probably did <some keys> + 6 by accident.
Now there's a little 6 label listed in front of the filename:
Does anyone know what shortcut I accidentally hit, so I can undo it? I found an SO user who did the same thing as me but he got no replies. I tried hitting a bunch of random shortcuts and looking in the options menu but I can't find the option that I must've hit.
https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf
Android Studio is based on Idea and inherits its features.
I'm guessing this could be the numbered bookmarks feature. Try Shift-F11 to list all bookmarks or Ctrl-F11 to toggle it.

How to copy the wrong hint when I use Android Studio 3.01?

I use Android Studio 3.01, it will display the wrong hint "Expecting member declaration" when there are some problem with my code.
But the text information of the wrong hint is hard to copy, it will be disappear immediately if the mouse is out of the hint area. I hardly to select the text of hint and click Copy item from Right-click menu.
Is there a simple way to do it? such as keyboard shortcuts.
Add Content
Many times that both the error hint and keyword hint are displayed simultaneously!
You may take a look to this question :
How to copy error message in Android Studio tooltip
which contain the answer:
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.

How to disable/pass refactoring preview window in Android Studio

I'm using Android Studio for a long time and I always found annoying the fact that you have to manually move the mouse to click 'Do Refactor' when refactoring. Is there a way to do it by some keyboard shortcut or completely skip this preview window? When I'm refactoring I know what I'm doing and I don't feel like I need a preview in most cases.
I didn't find anything that could answer my question.
I had a similar issue with Android Studio. I couldn't find a way to disable preview, but I did find a keyboard shortcut workaround. Just press Alt+D and it will "do refactor".

How to show Android Studio's Messages Window?

When I build a project and there are errors, the Messages window that shows all the errors does not always show. I have to build the project (i.e. Ctrl + F9 ) twice or more in order to see the window.
When the window is not shown, View > Tool > Messages Alt + 0 is grayed out as shown by the following screenshot. How can I show the window when there are build errors?
I am running the latest Android Studio on Windows 8.
[Edit] 2018-04-02
Android Studio 3.1 seems to have this window removed, many people may come here because of missing the Messages Window due to a different reason, and yuval's answer may be the right one in this case.
I got here after upgrading to Android Studio 3.1, in which they removed the Messages window, replacing it with the Build window. After some poking around, I found this button on the left side of the Build window:
Clicking this button toggles the view between the new "Build" view and the old "Messages" view.
UPDATE: per suggestions in the comments, since this doesn't really answer the asked question, I opened it up as its own question: Where is the Messages Window in Android Studio 3.1
UPDATE 2: In Android Studio 3.3 the button now looks like this:
UPDATE 3: In Android Studio 3.6 the button is gone. Instead, the build window is permanently split between text output and visual output. If you can't find the text output, it might be fully collapsed, so look on the top right of the build window for something like this:
And try to drag it left to reveal the build window, like this:
It was a bit different in my case. I just closed the Message Tool Window with this red cross on the left and then this window completely disappeared and would not show again even after several rebuilds, View > Tool > Messages Alt+0 was also grayed out. The only thing that helped to bring the Window back is to break the build, so it would be some compiler errors. After that the window has reappeared showing those errors. Now the window is still there, does not vanish. Hope this helps somebody.
Just to have the whole picture. Go to the Build and then on the left side of the window you will find your Messages icon.
Build -> Make Project
(Ctrl+F9 or ⇧⌘F9)
Can't find the button #yuval provided, but here it is to toggle to show it

Releasing the find and replace pane in visual studio 2012

In Visual Studio 2012 the find and replace window has Docking alignment to the top right side, how to release it?
The "quick find" window isn't docked in the usual sense. Press Esc to dismiss it and also make the yellow-orange search result highlighting go away.
Alternatively, click the X in the top right of the mini window.
Edit.Find = docked Find window
Edit.Replace = docked Replace window
Edit.FindinFiles = undocked Find window
Edit.ReplaceinFiles = undocked Replace window
so for undocked windows you can press Ctrl + Shift + F or Ctrl + Shift + H
or alternatively change shortcuts in Options > Environment > Keyboard to reach desired windows easier.
This is not possible unfortunately, which really drives me nuts when trying to find something in a minified file (single line) since the find window commonly blocks the found result.
Last post I could find about it:
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/3636907-let-me-undock-the-find-and-replace
The best solution I can find is copy and past file into notepad and find there (for my needs).
In Visual Studio 2012 all docked windows can be released as follows;
Docked Window's Header right click menu (or click Window Position Icon what located the far right of the header)> Float menu
If the usual things, as already suggested, won't work, here are two other ideas I have found to work with oddities in Visual Studio.
Disable all plugins and try again (had a weird case of VS crashing on Ctrl+S and it was a faulty plugin)
Try a repair on the install, could have some faulty files.

Resources