members occurrences not showing in scroll bar in Visual Studio? - visual-studio

I used to use this feature to see the number of occurances and position of a type or member. It supposed to work when I click a member and it's highlighted in grey, and all the occurrences drawn along the scroll bar as grey dots, representing the number of occurrences and their positions. Now I miss this helpful feature, and the only way to use it, is to copy the member name and paste it in the Find window. How to bring it back to Visual Studio?

To change the scroll bar mode, right click on the scroll bar itself and choose Scroll Bar Options from the context menu. You could also locate the scroll bar settings by typing “scroll bar” in the Quick Launch, or by navigating to Tools | Options | Text Editor | All Languages | Scroll Bars from the menu

Related

How to make this code overview tab appear on your screen ( Visual Studio )

Does anyone know how to make this tab appear on your screen? (It's an overall view of the code). I saw someone use it somewhere and took my attention:
That is the vertical scroll bar in so-called "Map Mode". To select this, issue the "Options" command from the "Tools" menu and navigate, in the tree in the left-hand pane, to the "Text Editor" ... "All Languages" ... "Scroll Bars" node and then, in the right-hand pane, select the "Use map mode for vertical scroll bar" radio-button:
Alternatively, you can go directly to that options page by right-clicking in the vertical scroll bar and selecting the "Scroll Bar Options..." command.

How to show the right hand side layout/margin?

I used to have the margin highlighted below. How can I display it?
If by showing the margin, you mean showing the vertical colored annotations on the scroll bar, they can be enabled by going into Tools > Options > Text Editor > C# > Scroll Bars and then enabling required annotations in the Display group
If you meant highlighting the background of the annotation area, then you must select Use map mode for vertical scroll bar under the Behavior group and set the desired width from the Source overview drop-down
What you need is to set "Map Mode" for the vertical scroll bar. This is a language-dependent, text-editor setting: for C#, select the "Options" command from the "Tools" menu; open the "Text Editor" and "C#" nodes of the tree in the left-hand pane and select "Scroll Bars." Then, in the right-hand pane, select the "Use map mode for vertical scroll bar" radio-button (there are several options as to how much detail you want to show in the scroll bar; the image you posted suggests using the "Off" option from the "Source overview" drop-down combo).
Here's a screen-shot:
The process is similar for other supported languages, such as Basic, F# and 'C/C++'. Also, be sure to actually enable the vertical scroll bar (check-box near the top of the same pane).

Visual Studio 2013 - Replace All Button gone (not just off screen)

I am unable to perform multi-file text search and replace (in Visual Studio).
In the past, when I opened the "Replace in Files" dialog, there were 4 buttons in the lower right. One of the bottom two buttons allowed me to "Replace All".
The two lower buttons (including "Replace All") are no longer present.
I believe this occurred after I changed some Windows settings so that I could use menus without the Magnifier.
It is not just a matter of the buttons being off-screen because the window is too large (although it is too large - they would be off-screen, if they were present).
I can drag the window and see the bottom, even though the top is then off-screen (I use AltWindowDrag, allowing me to hold the ALT key, and drag by any part of the window, not just the title bar).
The two lower buttons are not present. I'm unable to resize the window - when I try, nothing happens, or the window repositions so that I can see the title bar, but can no longer see the bottom.
The two buttons that are still present (Find Next and Replace) don't have keyboard shortcuts, so I presume that Replace All doesn't either. Nor can I select either of those two buttons using Tab, so probably can't select an "invisible" "Replace All" button that way.
Any help appreciated.
You can use Find and Replace by pressing Ctrl+H and to Replace All just use Alt+A.

Enterprise Architect - simple UI Tab Control

Is it possible to change number of tabs and tabs name in simple UI Tab Control? How to do it? (user interface diagram)
I'm using EA 11.
No. Tab 1 | Tab 2 | Tab 3 is part of the element's image and you can't change them. There is a workaround which works visually, but won't help if you're looking to generate code out of your models.
Create a Text element (in the Common toolbox), and give it the name of your GUI's first tab.
Set a different default fill and text color for the Text element (Right-click and select Appearence - Default Appearance).
Pick the Fill and Border Color for the Text element that best matches the Tab Control's foreground, either in the diagram toolbar or the Text element's context menu.
Move and resize the Text element to cover Tab 1.
Repeat as necessary for the other tabs, using the appropriate color.
The Text elements are local to the diagram they're in and are not shown in the project browser (they are diagram objects but not proper model elements), but they move with the Tab Control so it works visually.
By making several copies of the Tab Control and varying which Text element has the foreground color, you can use this technique to show the different panes.
You can change number of tabs and selected tab this way (at least in EA 13):
Open Properties of the Tab Control;
In "General" select "Wireframing" tab. You'll see "Tabs" property with a value "Tab1";
Select this "Tabs" property and click on "Notes" menu. An editor appears;
In this editor you can change number of names of tabs;
Close editor and for "Tabs" property choose selected Tab;

Visual Studio: How can I see the same file in two separate tab groups?

I want to be able to edit one method while looking at another method in the same file, as reference.
Can this be done?
You can open the file in another tab (Window -> New Window).
Doing so you have two copies of the same file. Then you can right-click the tab bar and select New Vertical Tab Group (or New Horizontal Tab Group, the one you like more).
Hope I understood you question..
Be on the tab you want to duplicate,then click in the menu bar at the top onWindow > New Window
Finally drag & drop the second window to the the left or right side to show both views next to each other.
Et voila, there you have it :)
EDIT
It seems that this function is not implemented in all version of VS.
In my case (V 15.4.2 (2017), V 15.9.7 (2017) & V 16.2.5 (2019)) it just works fine.
Only vertically that I'm aware. When looking at the code, right above the vertical scroll bar is a small rectangle, drag it down to get a split view of the file.
You simply use the small drag arrows icon at the top right corner of your file window as depicted in the following screenshots:
1) View the same document side-by-side (with a fix for Visual Studio 2017)
It is possible to do this using New Window and New Vertical Tab Group, however, in my Visual Studio 2017 the New Window command was missing from the Window menu. To use it, first you must add the command to a menu or assign a shortcut to it.
To add New Window to your Window menu follow this sequence, starting with the Tools menu:
Tools > Customize > Commands > Menu Bar > Window > Add Command > Window > New Window
FYI In the Commands step you decide where to put the New Window command. The sequence I gave above puts it unceremoniously at the top of the Window menu.
To view the same document side-by-side
Open the document you want to view side-by-side
Select your recently added New Window command (perhaps it's in Window > New Window)
Right click the new tab and select New Vertical Tab Group or select that command from the Window menu
2) View the same document above-one-another
If you wish to view the same document in two views on top of each other use the Window > Split command or click-and-drag the double-arrow at the top of the scroll bar for any window.
3) Get creative
FYI You can even combine the two view options to have three, four or even more views of the same document on a particularly wide monitor. On mine (2560 x 1080) I can comfortably get three side-by-side views going and split them vertically, if desired.
One can install VsVim extension and :sp :vsp does the trick.
In Visual Studio 15 you can just click inside the document and then "Window → Split"

Resources