SlideShare una empresa de Scribd logo
1 de 73
Descargar para leer sin conexión
Microsoft Visual Studio.Net
     Tips and Tricks
  to save you 10 minutes a day

             Wei Li
            09/2006
If I had eight hours to chop down a tree,
   I'd spend six sharpening my axe

                     - Abraham Lincoln
What do you want most from
an IDE?

It is just me -

  Assist me write good (hopefully) code fast
    and happily
Let us make a great IDE
better
Launch VS.NET quickly
Organize views and windows
Choose color scheme and font
Master some shortcuts
Do not repeat yourself using macros
Extend VS.NET using addins
Use command window
First thing first – save time on
start up
Say NO to the start page
Choose the right start up
option

                      Show Start Page

                      Load last loaded solution

                      Show Open Project dialog
                      box

                      Show New Project dialog
                      box

                      Show Empty environment
Suppress the splash page
It probably does not bring you anything
   good
Suppress the splash page
Start VS.NET from command
prompt
C:> devenv /nosplash c:weicsharpproj1proj1.sln
                     c:weicsharpproj1


Prerequisite
 Put C:Program FilesMicrosoft Visual Studio .NET
     C:        Files
 2003Common7IDE into your path
 2003Common7IDE
Set the path
Litter your desktop with a
solution shortcut

Double click it to open the solution
A little more about working
with command prompt
C:>devenv /?

C:>devenv c:weitrialcsharpunit_testunit_test.sln
/build DEBUG


Why? Automation and continuous integration
Views, windows, layouts
Solution View
Property View
Server View
…
Debug Window
Output Window
Task List Window
…
Oh My!
Less is more

Ever tried Alt + Shift + Enter?
Organize the views and
windows
Make views/windows auto-hide

Bring them back with shortcuts and
  command window aliases only when
  they are needed
Link file under editing to
solution explorer
Link file under editing to
solution explorer
Disable the navigation bar
Little thing counts
Add guide lines to Visual Studio.Net Text Editor
Subtle effect: do not write a line which is too long
Add guide lines to Visual Studio.Net
Text Editor
Open regedit
            HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio<7.1>
Navigate to HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio<7.1>Text
   Editor
Right-click on the Text Editor key and choose New String Value and name it
    "Guides"
Set the value of the guides to RGB(92, 46, 46) 80, 100
Text editor color scheme
Customize a combination which is best for
 your eyes
Anyone likes the dark side of
Visual Studio.Net?
       Studio.Net?
Text editor color scheme
sample




   Source: http://seizethedave.com/etc/ide-color.gif
           http://seizethedave.com/etc/ide-
Text editor color scheme
  sample




Source: http://www.codinghorror.com/blog/archives/000682.html
Text editor color scheme
 sample




Source:
http://www.codinghorror.com/blog/archives/000682.html
Font for text editor
Choose a font that works best for your
 eyes
Font size for text editor
Choose a font size - I choose a larger font
  size 14.

Why?
•   Good for my eyes
•   Seeing a lot less code in the editor at a time helps
    write better code. You naturally want see a whole
    method in one go. Seeing less code has the subtle
    effect of writing shorter and cleaner method.
Shortcuts
Tons of them
Lots of them you never use
Lots of them you do not care

Master 10 – 15 killers that you use all the
 time
Shortcuts
Ctrl + Space

    Complete the current word or shows all available methods
 and properties for a class



Ctrl + Shift + Space

   Show the parameter information when the cursor is inside
 method parentheses
Shortcuts
Ctrl + K Ctrl + I

      Show a quick description about whatever object the cursor is
  currently resting on
Shortcuts
Ctrl + M + O
        Fold all code


Ctrl + M + P
       Expand all folds
Shortcuts
Ctrl+K Ctrl+C
           Comment out the selected code area


Ctrl+K Ctrl+U
           Uncomment the selected code area


Ctrl+K Ctrl+F
           Format selected code area
Shortcuts
F7
             Code view



Shift + F7
             Design view
Shortcuts
F8
                Next item in the task list or search results.


Killer usage:
  Search for something in the whole solution
  From command window: grep “wordtosearch”
  Then hit F8 for the results
Shortcuts
F12
      Go to definition



Shift + F12
      Go to reference
Shortcuts
Ctrl + F
      Find



Ctrl + Shift + F
      Find in files
Shortcuts
F5
       Start with debugger


Ctrl + F5
       Start without debugger

F10
       Step over

F11
       Step into
Shortcuts
Esc
      Set the focus back to code view (editor)


Ctrl + Tab
      Go to the next opened file in the text editor
And do not forget
Ctrl + S
       Save the current file
       Not just for VS.NET




Ctrl + Shift + S
       Save all modified files
And do not forget
Shift + F10
       = right click
       Bring up context menu
       It works not only for VS.NET
Create your own shortcuts
Tools->Options->Environment->Keyboard
Tools->Options->Environment-
My customized shortcuts
alt + s   Solution viewer
alt + c   Class viewer
alt + p   Property Viewer
alt + f   Find File
alt + o   Opened file
alt + a   All members of the file
alt + m   Methods of a file
alt + v   Pending checking
alt + r   Output viewer
alt + t   Options window
alt + h   View history of the file under editing
Shortcuts
List all shortcuts and print it out for
  reference

Use a macro available here:
  http://www.codinghorror.com/blog/archives/000315.html
Macros
A series of commands and instructions grouped
  together

Automate repetitive actions
Macros
Create a macro

Run a macro

Edit a macro
Macros
Assign shortcut to a macro
Macros
Create a command alias for a macro
Addins


All killers no fillers
VSFileFinder2003
Find files quickly in large solution with many projects

Freely available from:
                         http://zero-one-zero.com/vs/
                         http://zero-one-

A must
VSFileFinder2003
USysWare DPack
Code browse
File browse
Solution browse

Freely available from:
      http://www.usysware.com/DPack/Default.aspx
USysWare DPack
USysWare DPack
USysWare DPack
USysWare DPack
QuickCode .NET
Write code for you
Give you more time to code other things that you really
  want to spend time on

Available from:
             http://www.dvxp.com/en/QuickCode.aspx
QuickCode .NET
QuickCode .NET
QuickCode .NET - Demo
write
main
for
private field
comments (div, ///)
create NUnit test class
TestDriven.NET
Integrate NUnit to Visual Studio.NET

Quick Demo

Will be covered in another talk

http://testdriven.net/
Solvent
Recursive Expand/Contract

Open All Sub Items

Open Containing Folder In Windows Explorer

Command Prompt Here

http://www.paraesthesia.com/blog/comments.php?id=602_0_1_0_C
VIEMU
vi-vim emulation for Microsoft Visual Studio
Vi/Vim is an text editor which allows you to edit code
   quickly

Not a freeware


Not for everyone due to its key binding

http://www.viemu.com/
VIEMU - Demo
  h j k l - move around quickly
  gg       - go to the beginning of a file
  G        - go to the end of a file
  :15      - go to line 15

  yy    - copy a line
  p     - paste

  :w    - save the file
  :q    - close a file
  :qa   - close all files

  :prb - build the project
Addins
Bring up addins using shortcuts and command aliases

This makes addins really powerful
Command window
The hidden treasure of VS.NET

Can be used to do pretty much everything

My control center for VS.NET
Command window
What can you do from command window?

Bring up views, windows
Build project and solution
Search for something
…
You name it
Command window - Demo
Important: create a shortcut to bring up command
  windows first

Mine is alt + w
Command window
Create alias
Command window
List all aliases
Questions?
My question to you
What shortcuts, tips and tricks you use all the time?
Being productive
Tools matter but it is not only about tools.
 It is about a mind set.

Nobody has time for it. Make it. Dig it.
It pays off.
If you save 10 minutes a day
Is it a big deal?

Let us do the math:
10 (minutes/day) * 300 (days)
 = 3,000 minutes
 = 50 hours
 = One whole week

Plus, chances are you will save more than 10 minutes a
  day!
Plus, you now can code in a better mental mood ☺

Más contenido relacionado

La actualidad más candente

La actualidad más candente (18)

CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorial
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.com
 
CIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.comCIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.com
 
CIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.comCIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.com
 
CIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comCIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.com
 
CIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.comCIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.com
 
The Ring programming language version 1.7 book - Part 19 of 196
The Ring programming language version 1.7 book - Part 19 of 196The Ring programming language version 1.7 book - Part 19 of 196
The Ring programming language version 1.7 book - Part 19 of 196
 
Cis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.comCis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.com
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's day
 
ID E's features
ID E's featuresID E's features
ID E's features
 
Creating Windows-based Applications Part-I
Creating Windows-based Applications Part-ICreating Windows-based Applications Part-I
Creating Windows-based Applications Part-I
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
The Ring programming language version 1.2 book - Part 7 of 84
The Ring programming language version 1.2 book - Part 7 of 84The Ring programming language version 1.2 book - Part 7 of 84
The Ring programming language version 1.2 book - Part 7 of 84
 
Php
PhpPhp
Php
 
C# with Renas
C# with RenasC# with Renas
C# with Renas
 
INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS
 

Destacado

MVP – how to test your business idea without building the product
MVP – how to test your business idea without building the productMVP – how to test your business idea without building the product
MVP – how to test your business idea without building the product
Asen Gyczew
 

Destacado (6)

さあ始めよう Visual Studio
さあ始めよう Visual Studioさあ始めよう Visual Studio
さあ始めよう Visual Studio
 
Visual Studio Tips and Tricks - Advanced
Visual Studio Tips and Tricks - AdvancedVisual Studio Tips and Tricks - Advanced
Visual Studio Tips and Tricks - Advanced
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Architecting ASP.NET MVC Applications
Architecting ASP.NET MVC ApplicationsArchitecting ASP.NET MVC Applications
Architecting ASP.NET MVC Applications
 
ASP.NET MVC Performance
ASP.NET MVC PerformanceASP.NET MVC Performance
ASP.NET MVC Performance
 
MVP – how to test your business idea without building the product
MVP – how to test your business idea without building the productMVP – how to test your business idea without building the product
MVP – how to test your business idea without building the product
 

Similar a Tips and Tricks for Using Visual Studio.Net Effectively

Similar a Tips and Tricks for Using Visual Studio.Net Effectively (20)

Prg 218 entire course
Prg 218 entire coursePrg 218 entire course
Prg 218 entire course
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
 
Whats new in visual studio 2017
Whats new in visual studio 2017Whats new in visual studio 2017
Whats new in visual studio 2017
 
Understanding IDEs
Understanding IDEsUnderstanding IDEs
Understanding IDEs
 
Increasing productivity using visual studio 2017
Increasing productivity using visual studio 2017Increasing productivity using visual studio 2017
Increasing productivity using visual studio 2017
 
01. Introduction to Programming
01. Introduction to Programming01. Introduction to Programming
01. Introduction to Programming
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Android studio
Android studioAndroid studio
Android studio
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdf
 
Autotools, Design Patterns and more
Autotools, Design Patterns and moreAutotools, Design Patterns and more
Autotools, Design Patterns and more
 
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
THE BASIC TOOLS
THE BASIC TOOLSTHE BASIC TOOLS
THE BASIC TOOLS
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
 
C language industrial training report
C language industrial training reportC language industrial training report
C language industrial training report
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Tips and Tricks for Using Visual Studio.Net Effectively

  • 1. Microsoft Visual Studio.Net Tips and Tricks to save you 10 minutes a day Wei Li 09/2006
  • 2. If I had eight hours to chop down a tree, I'd spend six sharpening my axe - Abraham Lincoln
  • 3. What do you want most from an IDE? It is just me - Assist me write good (hopefully) code fast and happily
  • 4. Let us make a great IDE better Launch VS.NET quickly Organize views and windows Choose color scheme and font Master some shortcuts Do not repeat yourself using macros Extend VS.NET using addins Use command window
  • 5. First thing first – save time on start up Say NO to the start page
  • 6. Choose the right start up option Show Start Page Load last loaded solution Show Open Project dialog box Show New Project dialog box Show Empty environment
  • 7. Suppress the splash page It probably does not bring you anything good
  • 9. Start VS.NET from command prompt C:> devenv /nosplash c:weicsharpproj1proj1.sln c:weicsharpproj1 Prerequisite Put C:Program FilesMicrosoft Visual Studio .NET C: Files 2003Common7IDE into your path 2003Common7IDE
  • 11. Litter your desktop with a solution shortcut Double click it to open the solution
  • 12. A little more about working with command prompt C:>devenv /? C:>devenv c:weitrialcsharpunit_testunit_test.sln /build DEBUG Why? Automation and continuous integration
  • 13. Views, windows, layouts Solution View Property View Server View … Debug Window Output Window Task List Window … Oh My!
  • 14. Less is more Ever tried Alt + Shift + Enter?
  • 15. Organize the views and windows Make views/windows auto-hide Bring them back with shortcuts and command window aliases only when they are needed
  • 16. Link file under editing to solution explorer
  • 17. Link file under editing to solution explorer
  • 19. Little thing counts Add guide lines to Visual Studio.Net Text Editor Subtle effect: do not write a line which is too long
  • 20. Add guide lines to Visual Studio.Net Text Editor Open regedit HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio<7.1> Navigate to HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio<7.1>Text Editor Right-click on the Text Editor key and choose New String Value and name it "Guides" Set the value of the guides to RGB(92, 46, 46) 80, 100
  • 21. Text editor color scheme Customize a combination which is best for your eyes
  • 22. Anyone likes the dark side of Visual Studio.Net? Studio.Net?
  • 23. Text editor color scheme sample Source: http://seizethedave.com/etc/ide-color.gif http://seizethedave.com/etc/ide-
  • 24. Text editor color scheme sample Source: http://www.codinghorror.com/blog/archives/000682.html
  • 25. Text editor color scheme sample Source: http://www.codinghorror.com/blog/archives/000682.html
  • 26. Font for text editor Choose a font that works best for your eyes
  • 27. Font size for text editor Choose a font size - I choose a larger font size 14. Why? • Good for my eyes • Seeing a lot less code in the editor at a time helps write better code. You naturally want see a whole method in one go. Seeing less code has the subtle effect of writing shorter and cleaner method.
  • 28. Shortcuts Tons of them Lots of them you never use Lots of them you do not care Master 10 – 15 killers that you use all the time
  • 29. Shortcuts Ctrl + Space Complete the current word or shows all available methods and properties for a class Ctrl + Shift + Space Show the parameter information when the cursor is inside method parentheses
  • 30. Shortcuts Ctrl + K Ctrl + I Show a quick description about whatever object the cursor is currently resting on
  • 31. Shortcuts Ctrl + M + O Fold all code Ctrl + M + P Expand all folds
  • 32. Shortcuts Ctrl+K Ctrl+C Comment out the selected code area Ctrl+K Ctrl+U Uncomment the selected code area Ctrl+K Ctrl+F Format selected code area
  • 33. Shortcuts F7 Code view Shift + F7 Design view
  • 34. Shortcuts F8 Next item in the task list or search results. Killer usage: Search for something in the whole solution From command window: grep “wordtosearch” Then hit F8 for the results
  • 35. Shortcuts F12 Go to definition Shift + F12 Go to reference
  • 36. Shortcuts Ctrl + F Find Ctrl + Shift + F Find in files
  • 37. Shortcuts F5 Start with debugger Ctrl + F5 Start without debugger F10 Step over F11 Step into
  • 38. Shortcuts Esc Set the focus back to code view (editor) Ctrl + Tab Go to the next opened file in the text editor
  • 39. And do not forget Ctrl + S Save the current file Not just for VS.NET Ctrl + Shift + S Save all modified files
  • 40. And do not forget Shift + F10 = right click Bring up context menu It works not only for VS.NET
  • 41. Create your own shortcuts Tools->Options->Environment->Keyboard Tools->Options->Environment-
  • 42. My customized shortcuts alt + s Solution viewer alt + c Class viewer alt + p Property Viewer alt + f Find File alt + o Opened file alt + a All members of the file alt + m Methods of a file alt + v Pending checking alt + r Output viewer alt + t Options window alt + h View history of the file under editing
  • 43. Shortcuts List all shortcuts and print it out for reference Use a macro available here: http://www.codinghorror.com/blog/archives/000315.html
  • 44. Macros A series of commands and instructions grouped together Automate repetitive actions
  • 45. Macros Create a macro Run a macro Edit a macro
  • 47. Macros Create a command alias for a macro
  • 49. VSFileFinder2003 Find files quickly in large solution with many projects Freely available from: http://zero-one-zero.com/vs/ http://zero-one- A must
  • 51. USysWare DPack Code browse File browse Solution browse Freely available from: http://www.usysware.com/DPack/Default.aspx
  • 56. QuickCode .NET Write code for you Give you more time to code other things that you really want to spend time on Available from: http://www.dvxp.com/en/QuickCode.aspx
  • 59. QuickCode .NET - Demo write main for private field comments (div, ///) create NUnit test class
  • 60. TestDriven.NET Integrate NUnit to Visual Studio.NET Quick Demo Will be covered in another talk http://testdriven.net/
  • 61. Solvent Recursive Expand/Contract Open All Sub Items Open Containing Folder In Windows Explorer Command Prompt Here http://www.paraesthesia.com/blog/comments.php?id=602_0_1_0_C
  • 62. VIEMU vi-vim emulation for Microsoft Visual Studio Vi/Vim is an text editor which allows you to edit code quickly Not a freeware Not for everyone due to its key binding http://www.viemu.com/
  • 63. VIEMU - Demo h j k l - move around quickly gg - go to the beginning of a file G - go to the end of a file :15 - go to line 15 yy - copy a line p - paste :w - save the file :q - close a file :qa - close all files :prb - build the project
  • 64. Addins Bring up addins using shortcuts and command aliases This makes addins really powerful
  • 65. Command window The hidden treasure of VS.NET Can be used to do pretty much everything My control center for VS.NET
  • 66. Command window What can you do from command window? Bring up views, windows Build project and solution Search for something … You name it
  • 67. Command window - Demo Important: create a shortcut to bring up command windows first Mine is alt + w
  • 71. My question to you What shortcuts, tips and tricks you use all the time?
  • 72. Being productive Tools matter but it is not only about tools. It is about a mind set. Nobody has time for it. Make it. Dig it. It pays off.
  • 73. If you save 10 minutes a day Is it a big deal? Let us do the math: 10 (minutes/day) * 300 (days) = 3,000 minutes = 50 hours = One whole week Plus, chances are you will save more than 10 minutes a day! Plus, you now can code in a better mental mood ☺