-
Tweaks to the Editor with Visual Studio 2010
With previous versions of Visual Studio you could highlight a block by holding the Alt-Left mouse button and dragging. Now you have something useful to do with the block besides deleting it. Anything you type will simultaneously appear on all lines in the block. Outlining is improved in Visual Studio 2010. If you position over the vertical line representing the outline, the associated outline block appears shaded. If you click the line, this block collapses. You can also hide code within a method by selecting it, right-clicking and selecting Outline/Hide Selection. This can make it easier to understand complex methods—although breaking up complex methods remains a better strategy. Refactoring tools remain available in C# and through free third-party products for Visual Basic. The splitter in the upper-right corner of the edit window works a little differently in Visual Studio 2010. The cursor no longer changes when you pass over it, but you can still pull it down to see multiple locations in a single file within the same window. The left margin shows what files are changed. Yellow indicates changes that are not yet saved. Green marks lines that are saved, but don’t match the originally opened file—generally lines you can undo. A new orange color indicates lines that are the same as the original, but not yet saved. This generally happens when you undo back to the original, but an intermediate save means what’s saved doesn’t match what’s displayed.
Source of Information : Visual Studio Magazine August 2010
Subscribe to:
Post Comments (Atom)
0 comments: