Scroll Bar’s scrolling bar missing - visual-studio-2012

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.

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.

Can't get rid of huge left indent in AndroidStudio (screenshot)

Hi, does anyone know what is it on the left?
It is unfoldable, non-draggable, useless and empty area across entire code. It appears in every opened class. If you click on it, you'll set a breakpoint. You can not collapse it. I do not remember how or why I got this, but then I didn't find any key or menu or button combination to heal this bug.
THis is the last Android Studio 3.6.3. And the same was before upgrade.
Please help, it eats my space and nerves!
UPD Gutter icons look ok.
Maybe your gutter icons are messed up. Check via the settings or the context menu on the gutter (i.e. where the line numbers are).
After 2 months of terribly inconvenient work I finally found the cause. To turn it off do
View - Appearance - Exit Distraction Free mode.
Amazingly, but this big white indent was intended to not distract me (from what? nothing else has changed).

VS Express 2012 Code View Scrollbar shrunk

Normally the vertical scrollbar in the text editor (code view) of Visual Studio Express 2012 runs the full length of the window you're viewing the text in.
After installing on a new machine, my new scrollbar is two sad little arrows, one up, one down, and cannot be navigated by moving the indicator inbetween them as there isn't one. If I split the view, I get two sets of scrolling nubs.
I've tried disabling and re-enabling the vertical scrollbar in Tools > Options > Text Editor > General. When disabled the miniature scrollbar goes away and comes back miniature if I re-enable.
Trying to figure out what setting or group of settings regulate this and how to get back my proper scrollbar.
Following worked for me
Go to %System Drive%\Users(user-account)\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
Rename the cache file (Microsoft.VisualStudio.Default.Cache) present there to 'Microsoft.VisualStudio.Default.Cache_1'.
Restart the visual studio.

Show all tabs in Android Studio

Is there a way of showing all source code tabs in Android Studio one one horizontal line (in the tab bar) and scroll through them?
When there are too many source code tabs open in Android Studio, some of them are moved to the drop down list at the top right corner of the code edit window. The tabs that are moved to this drop down list are not shown in the tab bar any more.
The tabs in the tab bar can be scrolled with the mouse wheel, but only the ones that have not been moved to the drop down list.
Is there a way to remove the drop down list and keep all tabs in the tab bar?
Not sure if this feature was introduced in later versions of studio (than at the time of which this question was asked) but now you have option to show tabs in multiple rows. You can do so by
Windows -> Editor Tabs -> Tabs placement -> Show Tabs in single row
You can uncheck above which is checked by default. Snapshot below -
In android Studio 4.0.1 you can find tabs configuration in:
Window->Editor Tabs->Configure Editor Tabs...
After, uncheck "Show tabs in one row" checkbox if it is selected.
The size of the tab bar is fixed and there are only fixed number of tabs that can fit inside that limited area.So, one way to quickly switch between the open tabs is to use the SWITCHER tool of Android Studio.
Press control + tab in MAC (don't know the shortcut for windows) and it will bring all the classes and other files which are currently open and you can efficiently switch between them without even touching your mouse or touchpad.
For Linux you can do similar to MAC

How re-enable design palette in Android Studio

I recently made the switch to Android Studio as my default IDE for Android development. When designing my UI I normally use the palette in the design view to assist in arranging the widget on the preview screen.Recently something weird happened, It just disappeared and I can't seem to re-enable it. Normally I would see the little Palette button on the side but now its gone. When I open another project I see the palette but not show this current project I'm working on.
When I open another project in Android Studio I see the palette tab.
I've just figured this out! If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.
try the Design/Text tabs in the lower left of the layout window
The palette can be shrunk to 0 width. This can be expanded by hovering next to the left edge of the design window, and finding the right-most expand position.
If you have only the designer and the properties showing and the Properties is on the right, you can get the palette back by switching to a left or right view.
Right click on the .xml file tab. Select "split vertically". This will open another Design that shows the palette again.
Android Studio 2.3.3, and the answer I was looking for:
Window -> Restore Default Layout (Shift+F12)
First Close All The Tabs Then Open res->layout->activity_main.xml
you will able to see design tab at activity_main.xml
Try to switch between Design/Text tabs at the bottom left of the editor.
You must have something in the layout resource highlighted. I also had to compile without an error.
My solution was traversing
src->main->res-layout->content_main.xml
then open content_main.xml
You have to be in the 'Design' tab (as opposed to the 'Text' tab) at the bottom of the middle window (the one that shows the phone).

Resources