I am trying to find a keyboard shortcuts to navigate thru IntelliSense suggestion arrows (marked area on the pic).
I have got somewhere a tip (and tested it) to hit escape key, which closes the bottom right box and then arrows will navigate the left box.
Related
using Visual Studio 2019 Community here.
I have two windows split vertically (that is to say, a window on the left and one on the right) and I have a bunch of .h files open in my left window.
If I'm currently in the right-hand window, and use ctrl+shift+t (or ctrl+tab) to select a file which is already in a tab on the left window, it will open that tab in the left window and re-focus my cursor to the left window.
This sucks.
Is there a shortcut to either:
a) Open that file again but in the right window which I'm currently focused on, or
b) Move a currently-focused tab on the left window over to the right window?
I largely try to avoid using my mouse when I'm programming, so I'm also using VsVim if that helps or makes a difference.
Thanks!
Looks like there are options for you to assign your own keyboard bindings.
Tools > Options > Environment - Keyboard
Assign shortcuts to Window.MoveToNextTabGroup and Window.MoveToPreviousTabGroup.
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.
I always found myself rolling the mouse wheel when programming for my project in visual studio 2013. I always need to look through my program code like at line 23 and then modify the code at line 220 and keep forth and backward. It get my eyes tired easily. Is there any tricks to help me save some reference points?
In the upper right corner of your code window there is a little arrow type icon which you can drag down to allow viewing of 2 different areas of the same window/tab. Very helpful when you are needing to go up and down in the same window.
Menu Window -> Split
Or as said Yosem above you can use arrow at corner of code window.
UPD. Also you can make a bookmarks for any lines you want. It's in menu Edit -> Bookmarks -> Toggle bookmark (by default shortcut is ctrl+K, ctrl+K or ctrl+F2). Then you can easily go to next/previous bookmark by pressing F2 / shift+F2
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!
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.