Skip to Main Content
Visual Studio Hacks
book

Visual Studio Hacks

by James Avery
March 2005
Intermediate to advanced content levelIntermediate to advanced
304 pages
19h 23m
English
O'Reilly Media, Inc.
Content preview from Visual Studio Hacks
Refactor Your Code #14
Chapter 2, Master the Editor
|
61
HACK
Using the Lists Manager, you can remove files and projects currently in the
list or add new files or projects using the Add button. Normally you should
not need to edit these lists, but from time to time I like to clear them out.
And when doing a fresh install, I like to add my frequently used projects
back to the list.
HACK
#14
Refactor Your Code Hack #14
Visual Studio 2005 puts this fundamental tenet of Extreme Programming into
action. Use it to write better code.
Refactoring is a technique for improving a section of code by modifying its
internal structure, but without affecting its external behavior. Refactoring is
one of the key tenets of Extreme Programming; in a rapid development
methodology, the idea is to create code quickly and then refactor it as you
work with it. The goal of Extreme Programming is to create better quality
code by concentrating on small deliverables and continuously testing and
refactoring your code. Refactoring is not just limited to Extreme Program-
ming—it is a valuable practice regardless of the methodology you happen to
subscribe to. Visual Studio 2005 introduces a new Refactor menu. This
menu is available whenever you right-click and provides a number of time-
saving and code-improving functions.
Refactoring is almost exclusively a C# feature. The only part
of the Refactor menu that is available in VB.NET is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Visual Studio 2015 Unleashed, Third Edition

Microsoft Visual Studio 2015 Unleashed, Third Edition

Mike Snell, Lars Powers
.Net Framework Essentials

.Net Framework Essentials

Thuan L. Thai, Hoang Lam
C# 5.0 Unleashed

C# 5.0 Unleashed

Bart De Smet
Programming .NET Security

Programming .NET Security

Adam Freeman, Allen Jones

Publisher Resources

ISBN: 0596008473Errata Page