Make insertion mouse cursor visible in dark Visual Studio editor - visual-studio-2010

I use a color theme with a very dark background, which works great except that VS2010 uses the default insertion point mouse cursor when the mouse is over the editor pane, and that cursor is black — making it nearly impossible to see (literally impossible if the background is actually black as opposed to just very dark).
Is there a straightforward way to tell VS2010 to use a light version of the insertion point mouse cursor instead?
Things I've tried so far:
I installed the Visual Studio Color Theme Editor (which enables theming of the rest of the UI, as opposed to just the editor) in hopes that it would do this automatically if I used one of its dark themes, but no such luck.
I tried using different mouse pointers in Control Panel, but even though the cursor changed in some cases (for instance, if I picked one of the "very large" schemes), it was still black and so nearly invisible.

Edit: In Windows 10 this setting is in a different place:
Open settings
Click Personalization
Click Themes in the right sidebar
Click Mouse Cursor
Select the Scheme called – Windows Black (system scheme)
Click Apply
Original Answer:
I have the same problem in Visual Studio 2012 (Dark Theme) on a Windows 7 guest system running inside VirtualBox.
I have found a slightly better solution:
Basically, you can globally change the cursor scheme:
Open Control panel
Open Appearance and Personalization
Open Personalization
Finally – click Change mouse pointers.
Select the Scheme called – Windows Black (system scheme)
Makes your cursor nicely visible against the dark background while also working great on light backgrounds.
Credit: http://www.marcusoft.net/2011/08/my-mouse-pointer-disappeared-in-visual.html

My temporary solution is that I'm using a custom "text select" cursor on the system as a whole, which I did by finding one that wasn't too outrageous, and then:
Windows 7 and earlier:
Open Control Panel
Open the Mouse applet
Choose the Pointers tab
Select "Text Select" in the list
Click the Browse button and choose the cursor file
Windows 8:
Click the Start button
Type "mouse click" and wait
Choose "Change mouse click settings" -- this gets you the old Mouse Properties dialog box
Choose the Pointers tab
Select "Text Select" in the list
Click the Browse button and choose the cursor file
Of course, this changes the cursor globally, not just in VS2010, and so I have to use one that works against both light and dark backgrounds (in my case, for now, the one from the DeepSky set on deviantart — only the text select one, not the full set).

It appears this is still a problem with Visual Studio and Windows 10 in 2021 (I keep updating this every year...).
Working off of szalski's and T. J. Crowder's solution, it can be changed in Windows 10:
Start button
Type "mouse"
Choose "Mouse settings" from the results
In the Mouse settings window, click on "Additional mouse options" under "Related settings"
Choose the Pointers tab in the new window that opens up
Select "Text Select" in the list
Click the Browse button and choose the cursor you want
As pointed out by Brad Bamford, "beam_r" is a good choice since it looks very similar to the standard pointer, but also has a white outline. I can finally see the cursor in Visual Studio.

You can change the cursor, so you don't mess up the theme you want in Windows.
I made two I Beams that I made available in a github project:
DarkThemeBeam
Use those, if you want.
I hope that's easier and less invasive on your eyes than changing the larger desired theme you want to work in.

Press the Windows button or click Start Menu
Type : mouse
Select: Mouse settings
From the Mouse settings window select: Additional mouse options, from the window, right top.
Select: Pointers tab from Mouse Properties new window.
Now select: Text Select, under customize level.
Click the Browse button and choose your desire cursor.
It's working!

Related

Is it possible to scroll horiztonally with keyboard/mouse wheel in VS?

Is it possible to scroll horizontally with the keyboard/mouse wheel in Visual Studio? I can do this via Ctrl + Up or Ctrl + Down, or just use the mouse wheel, for vertical scrolling, but I could not find out how to scroll left/right via Googling. I'm using Visual Studio 2017 RC.
edit: Just came across this, but it seems to be only compatible with VS2015. When I tried to use it with VS2017, it errored out.
One approach is to directly modify IWpfTextView.ViewportLeft for the active view. You can use the following two commands Scroll the current text editor horizontally for my Visual Commander extension and assign to them shortcuts like Ctrl+Right Arrow and Ctrl+Left Arrow.
You can assign custom keybindings to the Edit.ScrollColumnLeft and Edit.ScrollColumnRight commands. To do so:
Open Tools -> Options -> Environment -> Keyboard
Show commands containing 'ScrollCol' (short enough to find these two)
For each command, set focus in the Press Shortcut Keys box and type your desired shortcut.
When you've found the keybinding you want, click the Assign button to save it.
In the image below you can see that I've set Ctrl+Alt+Right to map to Edit.ScrollColumnRight, and Ctrl+Left is already assigned to the Edit.WordPrevious command when in the Text Editor.
Maybe, if you click in the center button on the mouse and then navigate across?
You need to go manage entension and search 'slideScroller' extension. Downloand and install. It's done. After then scroll horizontally with shift+left Mouse.

how to hide all windows except editor window in Visual Studio 2013?

In Eclipse when you click twice on the tab of the editors Eclipse hide all other windows except the one you write code in and when you do that again(clicking the tab of the document all windows comeback again).
Is there a similar feature in Visual Studio 2013?
Update: I found Auto Hide in Window Menu, but I don't want auto hide, I want to click something to hide windows and click again to show them.
As a programmer i love shortcut keys which is very helpful for productive work. I've search question as you mentioned. But i did not get proper answer. then i've searched solution for me which might helpful to you.
Step 1: Go to visual studio
Step 2: From tool menu open Options menu
Step 3: Go Environment -> Keyboard
Step 4: Select item Window.AutoHideAll from list
Step 5: Set short cut in "Press shortcut keys textbox". I've set Ctrl+Alt+] then click on Assign & then ok.
Step 6: Final step. Use above shortcut to hide all window other than editor window.
View | Full Screen
(In my key bindings: shift+ctrl+enter.)
However, double clicking on an editor tab also works, this is provided by one of the extensions I use, but I'm not sure which.)
Richards answer does work, but has the side effect of maximizing the whole of Visual Studio as well. Sometimes (e.g. when comparing editor text to some other text), I would like Visual Studio to only take half the screen. A solution I found in Visual Studio 2019 was:
Window | Save Window Layout (call it something like Normal layout)
Unpin all the other panes you don't want to see, ToolBox, Solution Explorer, Build Results etc. Typically Left, Right and Bottom
Window | Save Window Layout, call it say maximized Editor.
Window | Apply Window Layout, you can choose Normal or Maximized editor
Visual Studio assigns these shortcut keys automatically of Ctrl+Alt+1 and Ctrl+Alt+2 to the first two Apply Window Layout choices

'Property pages' tab is missing in VS2010

On the right of VS2010, there is normally a group of tabs, like the solution explorer and the property pages tab. It seems that the tab to access the property pages is missing.. How can I get it back? This must be easy.
The tabs will only appear if more than one window is docked at the same spot. If you don't see them then you either have undocked the window or closed them. Closing be the more likely case here, use the View menu to get them back. Or Windows + Reset Window Layout if you're completely lost.
Click on the Project name in the Solution Explorer and then press F4. The Properties window/tab should now appear.
Note that this Properties tab is different than the one shown if you right click the project name and then click "Properties."
Under View Dropdown menu, should be there.
Or right click on the app in design mode and click properties.
Close your visual studio and open the Visual Studio Command Prompt (from window Start -> Programs -> Visual Studio XXXX -> Visual Studio XXXX Tools) and enter "devenv /setup".
If you want to dock one below the other it's a two step operation. You need to start with the two windows not connected together at all.
1) dock the first window on the right hand side of the application. This should fill all of the vertical space available.
2) make sure the second window is floating then drag it towards the first. When the arrows appear move the mouse over the down arrow and the second window should snap below the first.

Visual Studio 2010 auto hide toolbox tab

In VS 2010 when you drag one control to your page (left mouse button is still clicked and cursor is on the page area) so the toolbox tab (from your left side - and auto hide) is still there and it seems auto hide not work.
But in VS 2008 everything was ok!
What is the problem about that / I am looking for this answer because when you drag something on your page you can not see the right element for dropping that control !!!
Any idea?
If you drag a control from the toolbox to somewhere within the design canvas but not onto your form, the toolbox will remain visible despite auto-hide being enabled. Notice the mouse cursor will have the "NO" symbol (circle with a line through it) while over the canvas area. Once you successfully place the control onto the form somewhere, the toolbox will auto-hide.
Autohide is working well for me, however, if you are having a problem you can try the following:
try pinning and then unpinning the toolbox
if you want to drop the control in a certain area .. select that area (one left click on the element where you wanna add the control) and then double click on the control you want to add and it will be added to where you want it and then you can place it
if that didn't work .. (and it should) .. try repairing MS VS2010

Setting position for prompt in Visual Studio?

How can I set the position for the output prompt in Visual Studio 2008 when debugging is started?
I have two screens and I want the prompt to always appear on my second screen so that I still can see the code on the primary screen, I have tried some tricks but I haven't got it right.
I'm not sure what you mean by "outputprompt". If you are creating a command line application and are talking about the command window, then
position the window where you want it (you can pause you app if it closes too fast)
click on its system menu, then click on properties
on the third tab of the appearing properties dialog, enter the values you like (be sure to uncheck automatic window positioning)
close the dialog by clicking OK
in the dialog that appears, pick the option that changes the link, instead of just changing the current window (I'm not sure either a German or English translation of the options is helpful for you)
HTH.

Resources