Visual Studio (C++) highlighting TODO and compiler errors in the margin with colored marker? - visual-studio

Is there a way in Visual Studio (2012, C++) to allow the IDE to highlight compiler errors and TODO comments (like how Eclipse shows them- as a colored line near the current file's scrollbar)?
I know there is a window called Task List, but I don't want another window- just the lines "highlighted" near the scrollbar.

Enhanced Scrollbar from Productivity Power Tools 2012 shows compiler errors, changes, bookmarks and breakpoints near the scrollbar, but not tasks.

Related

How can I find all unsed using statements with ReSharper?

I want to find all unused using statements in my Xamarin C# project using Visual Studio and ReSharper.
How can I do this?
You can see the unused using statements as warnings in ReSharper Errors/Warnings in Solution window.
You can open it by,
Navigating to ReSharper | Windows | Solution Errors or,
By double clicking on the Errors/Warnings link at the bottom right corner of Visual Studio
In the appearing window, click on ⚠️ icon to show warnings. If there are unused using statements there will be warnings listed. Expand the warnings to find using statement related warnings.
Double clicking on the warning will take you to the relevant file. The unused using statement can be found in gray colour.
Note: Enable Solution Wide Analysis and Reanalyze All to make sure you want miss anything.

No more red dot on scroll bar in Visual Studio 2012

At Visual Studio 2010, there will be a red dot(s) on scroll bar indicated where your code has errors. Also a other color dots for other message etc.
But after installed Visual Studio 2012, I cannot see this feature anywhere, tried toolbar-options, nowhere to found.
Am I miss something? Or Microsoft just removed this feature.
{EDIT}
Sample of Visual Studio 2010
And Visual Studio 2012, where these nice little dot candy go?
The dots you see on the scrollbar are definitely a feature of the "Productivity Power Tools" Extensions "Enhanced Scrollbar".
Link
There are 3 Modes to enhance the Scrollbar, your Screenshot displays the first (default) one.
Unfortunately, there seems to be no equivalent for VS2012. Or does anyone know of an extension that improves the scrollbar like that?
Is it possible you were using the jetbrains resharper tool? That provides the feature you describe, but I don't recall ever seeing it in visual studio
Have you got code errors? :P
Check the editor settings out, I am pretty sure it is there it might just be off by default.
As you add code and build your solution, you may see different-colored wavy underlines (known as squiggles) appearing in your code. These marks notify you of problems Visual Studio has detected in your code. For example, red squiggles denote syntax errors, blue squiggles denote compiler errors, green squiggles denote warnings, and purple squiggles denote other types of error. For example, they are used for "rude" edits in Visual Basic, which are changes that are made during Edit and Continue and that will result in compiler errors.
You can see the default color for each error and warning squiggle in the Tools/Options/Environment/Fonts and Colors dialog box. Look for Syntax Error, Compiler Error, Warning, and Other Error.
From here: http://msdn.microsoft.com/en-us/library/efc4xwkb%28v=vs.110%29.aspx

Visual Studio 2010 Find Green Squiggly Lines

Is there a way to find all the green squiggly lines in Visual Studio 2010 other than visually scanning each markup file?
Open the error list panel, enable the warning 'option'.
See green line for Warning (2)....
The warning appears to only appear for files that are open. So keep an eye on that panel as you are working. You could do a blanket-open-all-files in VS to check for any missed warnings.
Menu View > Error List
Green wiggly lines mean they're warnings (as opposed to the red ones, those are errors and would impede your code from building)
Double clicking separate warnings (and errors likewise) will take you to them in your code file.

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

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.

Resources