Saturday 14 August, 2010

Visual Studio 2010 All-in-One For Dummies

Visual Studio 2010 is a complete rewrite of the user interface, but it still has the familiar commands and tools from previous releases. Visual Studio 2010 provides a dizzying array of editors, controls, designers, and supporting tools for developing software. In addition to building traditional applications, you can use Visual Studio 2010 to build and manage solutions for SQL Server databases, SharePoint sites, Windows Workflow applications, BizTalk packages, and other enterprise server solutions.

Visual Studio 2010 Keyboard Shortcuts for General Development Environment

Visual Studio 2010 keyboard shortcuts for the general development environment increase developer productivity by allowing you to perform most common tasks without taking your hands off the keyboard.

Task You Want to PerformFeatureKeyboard Shortcut
Browse data typesClass ViewCtrl+Shift+C
Object BrowserCtrl+Alt+J
Edit codeFormat DocumentCtrl+K, Ctrl+D
Comment SelectionCtrl+K, Ctrl+C
Uncomment SelectionCtrl+K, Ctrl+U
Insert Code SnippetCtrl+K, Ctrl+X
Toggle OutliningCtrl+M
ExpansionCollapse to DefinitionsCtrl+M, Ctrl+O
Toggle Designer and MarkupShift+F7
View CodeF7
DebugStart DebuggingF5
Start without DebuggingCtrl+F5
Step IntoF11
Step OverF10
Toggle BreakpointF9
RestartCtrl+Shift+F5
Find and replaceFind SymbolAlt+F12
Quick FindCtrl+F
Quick ReplaceCtrl+H
Find helpContentsCtrl+Alt+F1
Context-sensitive helpF1
Display Visual Studio HelpCtrl+F1
Help Library ManagerCtrl+Alt+F1
SearchCtrl+Alt+F3
Manage project resourcesProperties WindowF4
Property PagesShift+F4
Data SourcesShift+Alt+D
Server ExplorerCtrl+Alt+S
Solution ExplorerCtrl+Alt+L
ToolboxCtrl+Alt+X
Add New ItemCtrl+Shift+A
Add Existing ItemShift+Alt+A
Build SolutionCtrl+Shift+B
Open files and projectsNew File WindowCtrl+N
New Project WindowCtrl+Shift+N
Open File WindowCtrl+O
Open Project WindowCtrl+Shift+O
Navigate windowsClose DocumentCtrl+F4
Close Tool WindowShift+Esc
Cycle DocumentsCtrl+F6
IDE NavigatorCtrl+Tab
Cycle Tool PanesAlt+F6



Visual Studio 2010 Technology and Terminology

Visual Studio 2010 and the .NET framework included their own terminology for these technologies. The following table includes definitions of some common terms you’ll encounter as you develop applications in Visual Studio 2010.

TechnologyDescription
AssemblyA file for physically storing data types, including the DLL
files where code is compiled
Base Class LibraryA set of managed code that enables developers to create Windows
and Web applications that target the Common Language Runtime
Common Language RuntimeA managed environment for running applications that prevents
memory leaks
Common Type SpecificationA set of rules for how programming languages use data
types
Garbage CollectionA feature of the Common Language Runtime that manages
memory
Global Assembly CacheA repository that stores public versions of assemblies
NamespaceA unique identifier for the logical organization of data
types

Common Visual Studio 2010 Item Templates

When working with projects in Visual Studio 2010, you’ll encounter a dizzying array of item templates to help you create your projects. The following table describes many of the common templates to help you along the way.

Item TemplateDescription
Application Configuration FileStores application settings for a Windows application
ClassEmpty class-definition file
Class DiagramModel of new or existing classes
Crystal ReportReport using Crystal Reports
DataSetStores data using DataSet Designer
HTML PageWeb page using HTML
Icon FileA Windows icon file
ReportReport using SQL Server Reporting Services
Settings FileXML configuration file
Site MapDescribes flow of Web pages in a Web application
SQL DatabaseEmpty database for storing local data
Style SheetCascading Style Sheet
User Control (WPF)Windows Presentation Foundation user control
User ControlReusable custom control
Web Configuration FileStores application settings for a Web application
Web FormUser interface for Web applications
Web ServiceCode file for a Web service
Windows FormUser interface for a Windows application
Windows Script HostA file containing script run as a Windows program
XML FileEmpty XML document
XML SchemaDescribes contents of an XML document
XSLT FileContains a stylesheet used to transform XML documents

Common Visual Studio 2010 Project Types

Visual Studio 2010 comes with many project templates to create the necessary boilerplate code and files you need to start developing applications. In the following table, you’ll find some definitions of project types to help you decide which is the right project template for your needs.

Project TypeDescription
Class libraryComponent library with no user interface
Console applicationCommand line application
Database projectSQL script storage
Device applicationWindows application for a smart device
Empty projectBlank project
SQL Server projectManagement of stored procedures and SQL Server objects
Web serviceASP.NET Web application with no user interface; technically, no
longer a project type
Web siteASP.NET Web application; technically, no longer a project
type
WindowsWindows application with a user interface application
Windows serviceWindows application with no user interface
WPF Browser ApplicationWindows Presentation Foundation browser application

Visual Designers in Visual Studio 2010

Visual Studio 2010 comes with many visual designers to make creating reports, designing classes, designing user interfaces, and modeling data extremely simple and intuitive. The following table lists each designer and describes what you create with it.

DesignerWhat You Can Do with It
Class DesignerModel classes using a class diagram
Crystal Reports DesignerCreate Crystal Reports reports
DataSet DesignerCreate typed DataSets
Project DesignerManage project settings in a centralized place
Report DesignerCreate SQL Server Reporting Services reports
Web FormsDesign user interfaces for ASP.NET Web sites
Windows FormsDesign user interfaces for Windows applications
XML DesignerCreate and edit XML schemas




No comments:

Post a Comment