Android studio - chromeless dialog in the editor with 4 code lines - android-studio

Android Studio 2020.03 Patch 4,
shows 4 lines of code in a chromeless dialog,
when I am scrolling through the editor.
I do not understand, how it picks those 4 lines.
I do not understand, how this dialog should be useful to me.
How do I disable those dialogs?

There's a Code lens that is shown when you hover on the scroll bar of the editor.
To disable that, there are two ways:
Settings -> Editor -> General -> Appearance -> Uncheck Show code leans on scrollbar hover and save it.
Right click on the Scrollbar and Uncheck Show code leans on scrollbar hover.
This will disable the code lens but it may not solve your problem as mentioned by a few users in other similar questions, for example, this question.

Related

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

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.

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

Workspace Configuration Buttons missing in Xcode 12

In previous versions of Xcode, the workspace configuration buttons hide or show the optional navigator, debug, and utilities areas as shown in the Apple Docs here. They are missing in Xcode 12. Does anyone know if there is a way to make them reappear. I know that there are keyboard shortcuts for this functionality, but I have really grown accustomed to using the buttons.
All of these options are still available on xCode 12.
Workspace configuration buttons are moved to their respective sides.
Top right, top left and bottom debug area (If not visible then show from Menu bar > View > Show Toolbar & Menu bar > View > Debug Area > Show Debug Area)
The optional navigation and Editor configuration buttons are also there

How can I add an icon to a toolbar item in VisualStudio 2012?

I'm using VisualStudio 2012. There is the toolbar with a lot of icons. I can adapt the toolbar nearly fully to my wishes.
But, there are certain commands that have not got an icon associated.
When I add one of these to the toolbar, there is not shown an icon, but the associated text. Which may be quite long. In my case, I want to have "Rebuild Solution" on the toolbar. This does not have an icon. And I'm using the german version of VS, where the text is "Projektmappe neu erstellen". Very long and quite unpleasing to see this much amount of space on the toolbar used by one command.
I'd like to have an icon here instead of this looong text.
If it is impossible to show an icon, I'd be content with a possibility to rename the thing in the toolbar, e.g. to "X", which would use much less space on the toolbar, too.
You can set "X" name for a toolbar item in VS toolbar options with the Modify Selection button:

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.

Resources