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

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

Related

How can I make Visual Studio XAML code editor not lose focus when switching among documents?

I'm editing in Visual Studio 2013 two XAML files.
I'm doing it using "Vertical Split" mode doing edits in one part - XAML code editor and tracking changes with my eyes in second part - visual designer.
When I switch between these documents using Ctrl+Tab keys, my cursor is gone from code editor so I must use mouse to bring it back. How can I enforce the IDE to not touch my cursor?
I think you can assign this by going to Tools -> Options -> Keyboard and searching for SplitPane. You should be able to assign shortcut keys for the following values:
Window.NextSplitPane
Window.PreviousSplitPane
NextSplitPane will cycle among the splits

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

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.

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.

Dock Code Windows in Visual Studio 2010

In Visual Studio, you are able to dock code windows in horizontal and vertical tab groups (something you can also do with tool windows).
However, when doing so you may end up with a lot of redundant screen space. What would be ideal would be if you could mix docking orientations for code windows. This is possible with tool windows in Visual Studio 2010. Here is an image showing the feature used for tool windows:
My question is: is it possible to get this same functionality with the code windows - i.e. being able to mix horizontal and vertical docking, like with the tool windows shown? I've heard rumours that its possible, but I've been unable to find any truth in that.
I too wish this was a naitive feature in visual studio, but there is one workaround by using the 'floating tab group' feature of visual studio
Move the visual studio main window out of the way (maybe to another monitor, or to smallest area of the monitor needed to see the tooling windows)
"Tear out" or Right Click > Float on the desired tab
Position the tab to your desire (I suggest using WinSplitRevolution, via codinghorror)
Repeat, note that you can move a tab to an existing 'floating' tab group
And voila!
There are some setbacks, some commands will pop up over the main tooling window instead of your current tab group etc. but its still pretty nice. I'm not sure if there's any changes coming in VS2012, but I haven't heard about anything related.

Is there a way to do "intraWord" text navigation in Visual Studio?

On Windows, Ctrl+Right Arrow will move the text cursor from one "word" to the next. While working with Xcode on the Mac, they extended that so that Option+Right Arrow will move the cursor to the beginning of the next subword. For example, if the cursor was at the beginning of the word myCamelCaseVar then hitting Option+Right Arrow will put the cursor at the first C. This was an amazingly useful feature that I haven't found in a Windows editor.
Do you know of any way to do this in Visual Studio (perhaps with an Add-In)?
I'm currently using pretty old iterations of Visual Studio (Visual Basic 6.0 and Visual C++), although I'm interested to know if the more modern releases can do this, too.
ReSharper has a "Camel Humps" feature that lets you do this.

Resources