C# Visual Studio Open context menus the other way? - c#

Normal context menus in Visual Studio always appear right to the mouse after you open them. Is it possible to make the context menu to appear left to the mouse after it opens? So it actually opens from right to left, instead from left to right.
Hope you know what I mean. (And no, the text in it is NOT meant, just the way the context menu opens) I wasn't able to find anything on that. It's just for aesthetics btw.

This is a new ergonomic feature in the Windows. The Windows check if you are using a touch screen than the Menus will open at the left side the reason is the human hand cover the right side of the clicked/pressed area (mouse pointer does not do that).
--------------------------------------------------Update -------------------------------------------------------------
I found the soultion for your prblem :-) you have to select from Tablet PC Settings the Left Handed, this will solve your problem.
Press the Windows logo key+R to bring up the Run dialog box. In the Open line, copy/paste the following text.
shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}
Press OK.
This will start the Tablet PC Settings configuration dialog (Even if you do not have a Tablet PC).
Select the Other Tab.
In the Handedness section, place a check mark in the Left Handed option.
Click OK.
Look to this information from microsoft:
http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/windows-7-application-menus-drop-to-left-instead/2d362701-90e4-4ea6-a3a1-c1391a3d2bea
Do not forget to mark the answer.

Related

why I can't move a windows form in visual studio?

this is probably an easy question but why I can't move a windows form while editing?
I mean, the tools box dont let me see the windows form and I cant move it to the other side, here's an image
The top left of the windows form will always stay at 0,0 in designer mode. To see it clearly in this case, just pin the tool box open, by clicking on the pin icon.

Tabs on the side of Visual Studio

I'm starting WPF. I need a tab on the sides of the screen; I do not know how to open that tab.
I do know how to open solution explorer but not other things like properties, notifications and toolbox.
Please see the below screenshot, just click the ones you want then pin them as needed

Cursor disappears in Visual Studio 2015

When using Visual Studio 2015 Community Edition my cursor frequently disappears when I perform the Ctrl+. shortcut to resolve missing dependencies. For example, if I am creating a new Entity Framework entity and want to add the [Required] attribute to one of my properties:
Type [Required]. The attribute gets a red squiggly underline.
Click Ctrl+. to bring up the suggested imports
Select the using System.ComponentModel.DataAnnotations option using the arrow keys
Press Enter to select it and import the using statement
Sometimes I can continue coding without any issues. But most of the time my cursor disappears and I have to click back on the code editor to get my cursor back.
It happens to me on several different computers using Windows 7, Windows 8.1, or Windows 10. I've tried resetting my VS2015 configurations to default, but it didn't seem to help. The only other thing I can think of that might be worth mentioning is that I'm use the Dark theme.
Has anyone else experienced this? Is there a setting change so that the editor keeps focus, or a keyboard shortcut to get the cursor back? It isn't the end of the world to use the mouse but I never had to do it in 2013 so it is slightly annoying.
I ran into the same issue, and found that if I went to my mouse properties and changed the default pointer for Text Select to one with white in it, I didn't lose the pointer in the editor. I don't know if this'll solve your issue, but it helped with mine.
I've had this problem as well, for me it seemed to be a glitch with the touch screen capabilities on my laptop. The cursor would disappear when using the track pad and moving into the work area in VS, and come back when I moved it outside to like solution explorer or similar.
Easily resolved by tapping the screen.
I had the missing cursor issue in VS 2015 Community Edition and it turns out the culprit was the Gotomeeting client software running on my desktop. I was accessing VS 2015 in an RDP session and as long as Gotomeeting was running on the desktop running the RDP client my VS 2015 cursor in the RDP session would disappear randomly.
I had the problem that the blinking cursor completely disappeared in Visual Studio 2017 (and probably other places as well). Found this old block post, that helped me:
I found the cause of the problem. I had also noticed that I did not have a text cursor (caret) in programs like Windows Live Mail. Somehow my caret size got changed to zero. The solution in Windows 7 was to go to Control Panel, Ease of Access Center, Make the computer easier to see, and under Make things on the screen easier to see set the thickness of the blinking cursor to 1 (mine was displaying a blank field). After applying the change, the text cursor displayed fine in Visual Studio Editor and Windows Live Mail.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/c7ba185e-1840-4649-984e-c12d5525baa2/cursor-not-visible-in-visual-studio-editor?forum=vseditor
None of the (many across web) posted solutions for the disappearing cursor worked. I found a solution that works for me go to:
Tools/Options/Environment/General/Window layout
there are 2 radio buttons:
Tabbed Documents
Multiple Documents
You must select one or the other. I switched to Multiple Documents and this solved the problem.
Details: this problem manifests when changing the focus to any other open window/application via Alt+Tab. On return, Vis Studio has no cursor visible. Ctrl+Tab is a sorry workaround, yet effective. But this fix is totally sat for me.
Try pressing the "insert" button. You might need to hold down the "fn" key for this.

Visual Studio Debug and variable watching

I'm having a really annoying issue with visual studio 2012.
During Debug I was used to look at the results of objects setting breakpoints and then moving mouse over the object and start exploring.
Now on my laptop that has a screen width of 1280px, it's not possible because the variable values are not wrapped, and the box goes completely out of the screen.
see the picture below:
and I'm not able anymore to click on the plus sign on the far left to view all the elements of the IEnumerable, or List...etc..
Is there some settings I have to modify to make it work also on 1280px screen?
At the root level, it (a DataTip dialog) has an unpin icon. Click the icon and the dialog floats above any open windows, and you can drag the dialog to a comfortable place, so you can expand to view all the elements in the IEnumerable (hopefully 1280px is enough).
View data values in Data Tips in the code editor
1920px (or higher) is a better resolution.

Visual Studio 2012/2013 Navigation Back/Forward with Mouse confliting with Mouse Plugin

The Navigate Backward (Ctrl+-) and Forward (Ctrl+SHIFT+-) buttons on the IDE use to be controlled by the mouse lateral Back/Forward buttons in VS 2010.
In VS 2012, the mouse buttons only works in some cases, like going back after clicking in "Go To Definition" in a method call. They are not attached to the IDE buttons.
Trying to fix that, I've installed this plugin: Mouse Navigation
Well, it works fine until you use the "Go To Definition", after that, the embedded VS Back/Forward mouse functionality start to conflict with the plugin, resulting in messy behavior!
Am I the only one with this problem? I've tried to Google it, but I've found nothing.
This is really annoying! I hope someone can help me to solve that.
Edit:
As you can see at the marked answer, the plugin have been fixed by its developer thanks to this topic. The last version (2.2.0) is working fine.
Some clarifying:
Visual Studio (2012) separates the normal navigation from "click to go" navigation.
Normal navigation: mouse click anywhere in code editor, tab change also.
Click to go navigation: Go to definition, search result click. It is controlled by the buttons named: "Browse Back / Next" "Previous/Next Definition, Declaration or Reference". You can find it in the View custom toolbar.
The default VS mouse back/forward buttons are attached to the "Browse Back / Next" buttons, not to the Navigate back/forward.
The VS plugin Mouse Navigation sets the mouse buttons to the Navigate back/forward. The only remaining problem is that because VS doesn't consider "click to go" as normal navigation, when you click to go to a definition and try to go back using the Ctrl+- or mouse back, you will not return to the last position, but to the previous "Normal navigation" position.
My suggestion to the plugin developer is to try to make VS consider "click to go" navigation as normal ones, completely solving this issue.
I just updated the Mouse Navigation extension to improve reliability of the commands. For some reason I never updated the extension to properly use the new IMouseProcessorProvider interface when I migrated from Visual Studio 2008 to Visual Studio 2010, and that bug never bothered me enough to revisit the extension until today.
You should find that version 2.1.0 behaves properly in Visual Studio 2010-2013.
The reason it only half works without the plug-in is because the mouse forward/back buttons do not map to navigate forward/back but rather some other navigation command (which never made sense to me as to what it was doing).
The way I solved this problem is to use my mouse software (SetPoint from Logitech in my case) to bind mouse forward/back to CTRL+SHIFT+- and CTRL+- respectively, while Visual Studio is in the foreground. This leaves my back/forward buttons working correctly in other applications (web browser) but while in Visual Studio I get the expected functionality.
Also, Visual Studio 2013 does seem to have better mouse back/forward control... though I haven't been using it long enough to be able to say whether the problem is truly fixed.

Categories