ASNApalooza 2007 by Roger Pence ASNA Education Director Visual Studio tips, tricks, and traps Visual Studio is a rich and deep product. Here are a few.

Slides:



Advertisements
Similar presentations
Microsoft ® Office 2007 Overview Get up to speed with the 2007 system Leon County Schools presents:
Advertisements

Microsoft Office 2007 Microsoft ® Office 2007 Training Get up to speed with the 2007 system.
Microsoft ® Office Training Get up to speed with the 2007 system presents:
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Microsoft Word 2010 Lesson 1 Word Lesson 1 presentation prepared by Kathy Clark (Southside H.S. IT Academy Teacher at Chocowinity, NC). Content from Microsoft.
1 Excel Lesson 1 Understanding Excel Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Excel Understanding Excel Fundamentals Microsoft Office 2010 Fundamentals 1.
Microsoft Word 2010 Lesson 1: Introduction to Word.
© by Pearson Education, Inc. All Rights Reserved.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Key Applications Module Lesson 12 — Word Essentials
Microsoft ® Office Training Get up to speed with the 2007 system Compudyne presents:
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Prepared by: Ms. Catherine M. Catamora IAS - IT
Lesson 3 Text Basics Adapted From Source:
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Visual Studio Tips and Tricks. Credits Zain Naboulsi Microsoft Developer Evangelist isbn:
Microsoft ® Office 2007 Get up to speed with the 2007 system Murray State University College of Education:
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
Creating Integrated Web-based Projects using Microsoft Word.
Presented By: Lynn Ann Wiscount Office A new look to familiar programs When you open a 2007 Microsoft Office system program, you’ll see a lot that’s.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
1. Chapter 9 Maintaining Documents 3 Managing Files As with physical documents, folders, and filing cabinets, electronic files and folders must be well.
Keith Elder Microsoft MVP
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
1 IE in the Classroom The Internet Explorer Web Browser EDW647 Internet for Educators Roger Webster, Ph.D. Millersville University Department of Computer.
© 2003 Everett Public Schools Information Systems and Technology Department Getting Started with FirstClass October 10, 2015.
Get up to speed with the 2007 Office system Answers to critical questions Now it’s time to look beyond the Ribbon and see what else is new. The Microsoft.
Microsoft ® Office Training Get up to speed with the 2007 system.
Key Applications Module Lesson 21 — Access Essentials
Shannon K. Basher, MLS Houston Academy of Medicine – Texas Medical Center Library.
1 NORMA Lab. 5 Duplicating Object Type and Predicate Shapes Finding Displayed Shapes Using the Diagram Spy Using Multiple Windows Using the Context Window.
Basic Editing Lesson 2.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
XP New Perspectives on Windows 2000 Professional Windows 2000 Tutorial 2 1 Microsoft Windows 2000 Professional Tutorial 2 – Working With Files.
Computer Skills /1436 Department of Computer Science Foundation Year Program Umm Alqura University, Makkah Place photo here 1.
Lesson 2: Manipulating Text Courseware #: 3240
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
Welcome Office 2007 vs. Office Overview When you open a 2007 Microsoft Office system program, you’ll see a lot that’s familiar. But you’ll also.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Typing and Formatting a Research Paper WORD 2013.
Microsoft Word Level 1 Michael Carco. Word Level 1 Agenda  Word Basics  Navigating in a Document  Inserting and Modifying Text  Creating and Modifying.
Getting Started with Word & Saving Guided Lesson.
AL A. LAURIO Teacher Microsoft Windows Vista. DESKTOP is the main screen area that you see after you turn on your computer and log on to Windows. it serves.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
Text Basics It's important to know how to perform basic tasks with text when working in a word processing application. In this lesson, you'll learn the.
Instructional Design Center Embedding Google Documents in Blackboard.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
What’s changed, and why Lesson 1 By the end of this lesson you will be able to complete the following: Get a handle on the new look of Excel. Understand.
Lesson Use the Windows Start button 2 Use a desktop shortcut 3 Used Most Frequently Used Programs on left side of Start Menu 4 Right-click a Word.
Excel Tutorial 8 Developing an Excel Application
Microsoft Word 2016 Lesson 1.
Microsoft Word 2010 Lesson 1 Revised February 9, 2011
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Fastest way for already created documents
GETTING TO KNOW YOUR KEYBOARD
Microsoft Windows 2000 Professional
Microsoft Word 2010 Lesson 1 Word Lesson 1 presentation prepared by Kathy Clark (Southside H.S. IT Academy Teacher at Chocowinity, NC). Content from Microsoft.
Introducing Microsoft Office 2010
A few tricks to take you beyond the basics of Microsoft Office 2010
Microsoft Word 2010 Lesson 1 Word Lesson 1 presentation prepared by Kathy Clark (Southside H.S. IT Academy Teacher at Chocowinity, NC). Content from Microsoft.
Key Applications Module Lesson 12 — Word Essentials
NORMA Lab. 5 Duplicating Object Type and Predicate Shapes
Microsoft Word 2010 Lesson 1 Word Lesson 1 presentation prepared by Kathy Clark (Southside H.S. IT Academy Teacher at Chocowinity, NC). Content from Microsoft.
Key Applications Module Lesson 12 — Word Essentials
Presentation transcript:

ASNApalooza 2007 by Roger Pence ASNA Education Director Visual Studio tips, tricks, and traps Visual Studio is a rich and deep product. Here are a few VS 2005 shortcuts and interesting things that make your work easier. 1

ASNApalooza 2007 Using bookmarks effectively Bookmarks are a way to mark parts of your code—for the purpose of making it easy to get back to that position in the code Bookmarks are, at first blush, not worth the work However, by poking around in Visual Studio just a little, you’ll quickly see how once you learn how to use bookmarks, at least for large projects, you’ll never do without them! 2

3 Bookmarks Code

4 Use Edit>Bookmarks>Toggle Bookmark to toggle a bookmark, or Ctrl/B + T

5 Bookmarks are identified as a small blue rectangle in the left margin. Bookmarks ride with the line with which they are associated.

6 The Bookmark menu

View>Other Windows>Bookmark Window Rename the bookmarks and put them in a folder The Bookmark window Press F2 to rename a bookmark Group bookmarks in folders that are named for the files in which the bookmarks reside

ASNApalooza 2007 Visual Studio mystery Where is the SLN file for my Web project? 8 A new Web site is created. However, there is no solution file, the SLN file, in its folder. Why? f:\_code\web\PaloozaTest1

ASNApalooza 2007 The location of the original SLN file Use Tools>Options>Projects and Solutions… 9 C:\Documents and Settings\roger\My Documents\Visual Studio 2005\Projects The location of the original SLN file is governed by the Projects and Solutions “projects locations” setting

ASNApalooza 2007 Gotcha! The enigmatic SLN file!

ASNApalooza 2007 Why am I saying “original” SLN file? The SLN file isn’t really important If you delete, you can still open a Web site project by simply using File > Open Web Site and selecting the root folder of the Web site you want to open If you delete the original SLN, or if you move the project, it looses its link with the original SLN file For most Web site projects, I don’t pay much attention to the SLN file

ASNApalooza 2007 Creating a new SLN file If you open a Web site that has lost its link with its SLN file (or if the SLN file has been deleted), it gets created for you—after you tell Visual Studio where to put it.

ASNApalooza 2007 Visual Studio mystery What causes this?! 13 The number is parentheses seems to come from nowhere sometimes. What gives?

ASNApalooza 2007 Duplicate project names? If you create two projects with exactly the same name, in different folders (would have to be, right)… Visual Studio tries to create a folder and a file for that project in your default projects location Because it can’t create two folders with the same name. 14

ASNApalooza 2007 The mystery solved For example, I created a PaloozaWeb1 project in one folder, and then another PaloozaWeb1 project in another Here’s what is in the default projects folder The (2) was added to the second to differentiate it 15

ASNApalooza 2007 Do you hate a messy Start Page? Yuchh!

ASNApalooza 2007 Keep your MRU list clear MRU entries are written to the registry and there isn’t an easy to clear them I wrote this program to clear the MRU Program available with Palooza downloads

ASNApalooza 2007 Favorite keystrokes Use the clipboard ring – Ctrl/Shift/V – cycles through the contents of the clipboard Incremental search – “Modeless” quick searches – Ctrl/I Find in files to find something in your project – Ctrl/Shift/F

ASNApalooza 2007 Favorite keystrokes Visual Studio 2003 made very effective use of Ctrl/Tab and Ctrl/Shift/Tab to move to the next or previous document window In Visual Studio 2005, they replaced that great feature with this boneheaded dialog:

You might like this. I hate it! All I want is a quick way to navigate back and forth through next and previous windows.

ASNApalooza 2007 Ctrl/Tab: Stickin’ it to the man! Keyboard remapping to the rescue Use Tools>Options>Environment>Keyboard to remove the keyboard bindings for Window.NextDocumentWindowNav and Window.PreviousDocumentWindowNav Then, assign Ctrl/Tab to Window.NextDocumentWindow and Ctrl/Shift/Tab to Window.PreviousDocumentWindow Now, all is right with the world 21

ASNApalooza 2007 Go full screen Use Shift/Alt/Enter to toggle between normal view and full screen view. Full screen view maximizes your editing window 22

23 Shift/Alt/Enter takes you from this

24 To this (back back again). Full screen mode gives you a chance to see all your code, but quickly restore the windows you were using. Thanks to Dean Bathke!

ASNApalooza 2007 Favorite keystokes Move to matching token – Moves to matching brace or paren – Or, to matching BegSr/EndSr, Do/Endo, et al – Ctrl/] Go to definition – OK, this isn’t a keystroke, it’s a mousestroke! – Put the cursor on a variable or method name, right-click it, and select “Go to defintion” – Takes you to the member definition 25

ASNApalooza 2007 Editor goodies Did you know that URLs are hot in your code? – Embed links to your help or to source documents – Enabled by default, but “Enable single-click URL navigation in” Text Editor options 26

27 Make sure this is checked to enable hot URLs.

ASNApalooza 2007 Editor goodies Turn line numbering on – Check “Line numbers” in Text Editor options – Shows line numbers in the left margin 28

29 Make sure this is checked to see line numbers

30 It’s nice to see line numbers, but it’s typically pointless. The reason you want line numbers visible is that when they are visible the “line selector” area for the mouse is substantially wider.

31 Use Sara Ford’s trick for adding vertical indention rules to the Visual Studio editor. These rules are great for beginners learning how to indent their code. My preference is to use a very light gray rule. You can just barely see them in this shot. Get the registry hack here:

32 Here is the same screen shot with the rules made a little more obvious so that you can see them.

ASNApalooza 2007 Use the Libretto’s code snippets to reduce the code you need to write The Libretto is a Web app that offers AVR- specific snippet templates – – It’s always up, it works, and it’s free! 33

34

35 Most Libretto templates have promted replaceable tokens. After you provide their values, click “Replace” or press Enter and the code shown on the left is on your clipboard.

36

ASNApalooza 2007 Did you ever forget where a project is? First, shame on you! But, just right-click a file’s tab and select “open containing folder” An Windows explorer Window will be opened over the folder where that file is Note that you can also copy the file’s fully qualified name to clipboard with this right- click as well. 37

ASNApalooza 2007 Quickies Use the Build toolbar (right-click on the menu and show the Build toolbar) for 1-click builds Use two monitors—delivers exponential boost to your productivity Use SUBST to map drives—an old DOS trick lives! Investigate the macros that come with VS Use Vault! You’re crazy if you don’t. 38

ASNApalooza 2007 Helpful links Sara Ford’s blog—great VS tips – Microsoft Visual Studio guided tour – default.htm Microsoft Visual tips and tips – Free Visual Studio Book (PDF) – Zoomit – great screen magnification tool – 39