Visual Studio Express 2012 for Web. Cursor won't return to the end of line when clicked somewhere - visual-studio

When I click somewhere in my editor view the cursor should move to the end of the nearest line of code or to the beginning of the line if it's empty. This is what I am used to at my work.
But at home I have the same VS Express 2012 for Web (everything updated), but the cursor stands blinking right at the point of the click.
I know this is not a big deal but it's a bit irritating.
Thanks!

Check that you have "Virtual Space" turned off.
From the Visual Studio menu Tools -> Options, Text Editor -> All Languages, and make sure "Enable Virtual Space" is unchecked.

Related

Visual Studio 2013 - Tab close behavior

I've been using Visual Studio 2013 Community Edition for several months now and have one small problem. When I close a tab with middle click, it closes on button press down, not on button press up.
If this doesn't make sense, what I can use as an example is the tab close behavior in Firefox. When you hold middle click over a tab, it doesn't close the tab immediately, it only closes when you release that button.
Is there any way to replicate this behavior in Visual Studio 2013? I frequently close the wrong tab, but happen to hold middle click when I do it, so this change would help me a bit.
I don't see a way of doing this in Visual Studio but you could try using Mouse and Keyboard Center 2.0 (a free download from Microsoft).
According to Tech Republic (emphasis mine):
Although this basic functionality is helpful, the utility's best feature is that it allows for application specific button assignments. As such, the right mouse button could be assigned one function in File Explorer and a different function in Microsoft Office.

Visual studio 2010 floating windows on top behaviour

So i'm using Visual Studio 2010 with a dual monitor setup and I like to have my Build/Team -explorer tab on my other screen.
But the the problem I am raging with is the following:
"sketch" of the problem: http://pastebin.com/X8K3ihGJ
If i'm coding and I switch to the word doc on screen 1 (it pops to the front (y) )
But if i then want to click on the build explorer on screen 2, the vs main screen on screen 1 goes to the front.
Is there anyway it's possible you can set the visual studio windows' on top state's independent from each other?
It's a minor issue but it's hurting me all day :)
Thx!
Try the Productivity Power Tools extension. Dock the build explorer in a floating tab well and enable the "enable independent floating tab well" option in the Document Tab Well settings. This will allow windows to be on top independent of each other.

How can I increase width of Selection Margin or prevent block highlighting in Visual Studio 2010 text editor?

When I moved from Visual Studio 2008 to Visual Studio 2010, there seems to only be a small section of pointing space (for the mouse) to click and drag and click again, to grab a few lines of code. This is about 8 pixels wide and is referred to as the Selection Margin. I often used this area in Visual Studio 2008 to select/copy/paste code. Now I have to rely on using the keyboard, which is not difficult, but if I'm using the mouse, Visual Studio is not very intuitive or usable. Is there a way to prevent the highlighting of lexical groups (where the expand/collapse or plus/minus sections are) so I can just select the lines of code instead? They seem to call this block highlighting. Most of the surface area to the left of the text in Visual Studio 2010 seems to be dedicated to the block highlighting. The text editor freezes when a lexical block of code is highlighted and I cannot use the right context menu. The right context menu is also only available from inside the text editor now, so I have to select my lines in that 8 pixel region, then move my mouse over to the right to copy. My productivity in Visual Studio 2010 has decreased substantially because of this change.
I'm wondering if anyone has written any extensions with the Visual Studio 2010 editor to fix these issues?
http://www.codeproject.com/KB/macros/WriteExtensions.aspx
Options > Text Editor > All Languages > Show line numbers. This allows you to have more space to select and copy the lines, but you still must go over to the right (where the code is) to copy.
Have you tried to select in a so called 'Continuous Stream Mode' which is supported by VS 2010 by default? Here's what I mean -> Hold down the SHIFT key and click in the Selection Margin(located at the far left of the Editor window, to select a whole line.) to extend your selection line by line.
Regards,
Evgenia

What happened to the Members/Methods combobox in Visual Studio 2010?

In Visual Studio 2008, I can see a combo box containing the members/methods defined in my class at the top of the code window:
However, I cannot see this in Visual Studio 2010! Was it removed? Can I get it back?
It's still there, you must have just inadvertently turned it off. To turn it back on, follow these easy steps:
From the "Tools" menu, select "Options".
Expand the "Text Editor" heading.
Select your language of choice (e.g., C# or VB.NET).
Check the box labeled "Navigation bar".

Show space, tab, CRLF characters in editor of Visual Studio

Where are the settings to show a space, tab, paragraph, CRLF, etc. (extended) characters?
Edit > Advanced > View White Space. The keyboard shortcut is CTRL+R, CTRL+W. The command is called Edit.ViewWhiteSpace.
It works in all Visual Studio versions at least since Visual Studio 2010, the current one being Visual Studio 2019 (at time of writing). In Visual Studio 2013, you can also use CTRL+E, S or CTRL+E, CTRL+S.
By default, end of line markers are not visualized. This functionality is provided by the End of the Line extension.
Edit -> Advanced -> View White Space or Ctrl+R,Ctrl+W for Visual Studio 2019
Display white space characters
Menu:
You can toggle the visibility of the white space characters from the menu:
Edit > Advanced > View White Space.
Button:
If you want to add the button to a toolbar, it is called Toggle Visual Space in the command category "Edit".
The actual command name is: Edit.ViewWhiteSpace.
Keyboard Shortcut:
In Visual Studio 2015, 2017 and 2019 the default keyboard shortcut still is CTRL+R, CTRL+W
Type one after the other.
All default shortcuts
End-of-line characters
Extension:
There is a minimal extension adding the displaying of end-of-line characters (LF and CR) to the visual white space mode, as you would expect. Additionally it supplies buttons and short-cuts to modify all line-endings in a document, or a selection.
VisualStudio gallery: End of the Line
Note: Since Visual Studio 2017 there is no option in the File-menu called Advanced Save Options. Changing the encoding and line-endings for a file can be done using Save File As ... and clicking the down-arrow on the right side of the save-button. This shows the option Save with Encoding. You'll be asked permission to overwrite the current file.
My problem was hitting CTRL+F and space
This marked all spaces brown. Spent 10 minutes to "turn it off" :P
The correct shortcut is CTRL-R-W like you don't have to release CTRL button while pressing W. This worked for me in VS 2015
For those who are looking for a button toggle:
The name of this command is View white space in GUI menu (Edit -> Advanced -> View white space).
The name of this command in the Add command popup is Toggle Visual Space.
If you use Visual Studio Code => View => Render Whitespace
That's it!
For me this setting was on, but didn't work. I had to turn it off and on again and than it worked! So this is a bug in Visual Studio Code!
If you use Visual Studio 2022 you can change the display options for whitespace etc. in Tools => Options => Text Editor => General and select "View whitespace"
The shortcut didn't work for me in Visual Studio 2015, also it was not in the edit menu.
Download and install the Productivity Power Tools for VS2015 and than you can find these options in the edit > advanced menu.
To see the CRLF you can try this extension: End of the Line
It works for VS2012+
For Visual Studio for mac, you can find it under Visual Studio -> Preferences -> Text Editor -> Markers and Rulers -> Show invisible characters
Please note you may need to restart Visual Studio for the changes to take effect
For completeness since I haven't seen it mentioned here, it is also in Options->Text Editor->General->View Whitespace.
In the actual version this Option ist under Editor: Render Whitespace

Resources