Android Studio creates this kind of overlay on top of everything else showing part of the code. How to disable? - android-studio

https://i.imgur.com/M4pgbiw.png[![Android_Studio_overlay][1]][1]
I sometimes get this randomly on top of everything when using Android Studio. These lines show randomly and the only way I have to remove it is by restarting the whole IDE.
Sometimes it's 3 lines, sometimes 6. Sometimes I can double-click on it and it takes me to that part of the code, sometimes it doesn't react at all if I click on it.
Right now, even if I minimize the Android Studio Window, this "overlay" is on top of everything else, even the Desktop.
I've looked online and the only thing that looks like it is the "code lens" option that appears when hovering the scrolling bar, but that's not it.
Does anyone know why does that happen and how to disable it?

follow the steps :
Editor -> General -> Appearance
find : Show Code Lens on scrollbar hover, and disable it
Second option would be : - If you right click on the scroll bar you will see checked the option "show code lens". Uncheck and you are good to go.

Related

No task bar in Android Studio

My task bar is gone and I don't know, I asked IntelliJ whether they can help me, but the answer wasn't useful. My Android Studio looks now like in the Screenshot. I also tried to uninstall and reinstall it and tried to change the settings.
Screenshot
When I created a new project, it looked like this:
Screenshot
Please help me.
Here are 4 simple steps for this:
Press Shift double time. It will open up the popped up window.
Under Actions, type main menu.
A toggle button labelled View | appearance: Main Menu - OFF appears.
Hit that toggle button to make it ON.
Voila! your Main Menu toolbar is back. 🎉
You can launch a search using Ctrl+Shift+A shortcut, then type main menu it will show you a menu like this, from View -> Appearance you can show or hide any option

Dock logcat window on a side of Android Studio

I hope not to be off topic.
I consider Android's logcat window in Android Studio horribly annoying, even working with two monitors.
To open the logcat window, that often needs to be fairly big, my procedure is:
click below on "Android Monitor"
select the current running device (one time only)
click on that tiny and almost invisible icon on the extreme right
reduce again the Android Monitor that I don't need at all
most of the times resize and move the logcat window.
Whenever a change has to be written or something has to be seen on the emulator, the logcat window needs to be moved or closed, because it stands on top of every window, and this leads to perform that same sequence again after maybe few minutes.
Debugging using logcat becomes a pain, made of opening and closing that same window dozens of times.
I want that window to popup or dock automatically with one single icon click or with a key combination from the right, or the left, like for example "Android Model", without getting crazy every time. One click shows it, one click hides it.
Is it possible?

Scroll Bar’s scrolling bar missing

Recently in my version of Visual Studio 2012 my scrollbar’s scrolling bar went missing in the code editor(text editor) and I need them back. It’s not the Tools->Options->Text Editor->Display Vertical Scroll bar and Horizontal Scroll bar check box issue. They are both checked and when they are not checked the bar does go away. The arrows in the scroll bar still work and I can move through the code and the page follows the cursor when moving through the code. I checked my other versions of Visual Studios on my computer and the bars are there.
Missing Hbar Missing Vbar
I tried repairing Visual Studio with no luck. I then tried uninstalling and reinstalling Visual Studio also no luck.
I had the same problem. I cleared it up simply by moving the file "Microsoft.VisualStudio.Default.cache" from my folder
%userprofile%\appdata\local\microsoft\visualstudio\11.0\ComponentModelCache.
It appears to have cleared up this "cached" behavior "preference". The neighboring folder
%userprofile%\appdata\local\microsoft\visualstudio\11.0\Extensions
had a couple other likely cache file culprits.
Although his solution to delete toolbox*.* files did not work for me, I was inspired by Roman Hnatiuk's resolution of a similar problem at
https://rhnatiuk.wordpress.com/2012/10/12/toolbox-scrollbar-disappeared-in-visual-studio/.
Go to Tools > Options > Text Editor > All Languages > Scroll Bars
Check the appropriate scroll bars
I'm using Visual Studio 2012 Express and i don't have the path in the answer of Paul Scofield. Yet, i have searched for the ComponentModelCache keyword in my %userprofile% folder and found it as "%userprofile%\AppData\Local\Microsoft\WDExpress\11.0\ComponentModelCache". Also found the "Microsoft.VisualStudio.Default.cache" file in the folder and deleted it. I can see the scroll bar now.
Posting as answer so that it might be usefull for other people like me.
In VS 2019 (maybe also earlier, didn't check), the vertical scrollbar has two modes: "bar mode" (the usual one) and "map mode" (the one where the code in the file is previewed).
For some reason, I had the "map mode" turned on by default, so I changed to "bar mode" by:
Tools -> Options -> Text Editor -> All Languages -> Scroll Bars -> Use bar mode for vertical scroll.
In Visual Studio 2022, I was using a split editor layout (two documents side by side). The one on the right had its horizontal scroll bar. The one on the left didn't have one.
Turns out that when I widened the left split pane, the horizontal scroll bar for that pane appeared. There had apparently not been enough space due to Git commit info in the status bar and the horizontal scroll bar disappeared instead. Seems like a bug or at least a poorly designed feature.

Auto documentation in android studio no longer goes away automatically, and have to manually close. How do I re-enable the default behavior?

I somehow turned the documentation popup to be manually closed. It's incredibly annoying and I can't find the setting to undo it. Whatever I did adds maximize, minimize buttons and these windows have to be manually closed now.
I actually found out. It's called pinned mode. I got into it by clicking the pin icon on the window at the top right. Of course once you're in pinned mode, and you try to deselect it from the gear, nothing happens.
How to fix
enable toolbars
hit the red X to restore popup

Android studio - preview when editing text has disappered

When I first started using AS I really liked the edit layout feature. I like the way it shows you a preview on the right of the screen when you are editing the XML.
This seems to have disappeared - how do I turn it back on? It's not a show stopper, but it was a nice feature.
The previewer is way better than the clunky Eclipse one.
There should be a tab called "Preview" on the right side of the screen.
If you can't see this then click the little square on the bottom left of the screen and it will appear.

Resources