Welcome to the comprehensive hands-on training project for mastering Visual Studio 2022 productivity features! This project contains practical exercises to help you learn and practice all the tips and tricks from the VS productivity guide.
This solution contains 19 exercises organized into 6 categories, covering everything from keyboard shortcuts to advanced debugging techniques. Each file includes detailed instructions, practice areas, and real code examples.
TestApplication/
├── KeyboardShortcuts/
│ ├── BuildAndRun.cs # Exercise 1: Build, run, error navigation
│ ├── QuickActions.cs # Exercise 2: Ctrl+., code fixes
│ ├── Navigation.cs # Exercise 3: F12, rename, references
│ └── EditingTricks.cs # Exercise 4: Line editing, find/replace
│
├── Navigation/
│ ├── Calculator.cs # Exercise 5: Ctrl+T, peek, call hierarchy
│ ├── MathOperations.cs # Exercise 5: Tab cycling, breadcrumbs
│ └── StringHelpers.cs # Exercise 6: Code Lens, IntelliSense
│
├── Debugging/
│ ├── BasicDebugging.cs # Exercise 7: Breakpoints, stepping, DataTips
│ ├── ConditionalBreakpoints.cs # Exercise 8: Advanced breakpoints, Watch
│ └── InteractiveDebug.cs # Exercise 9: Immediate Window, Edit & Continue
│
├── Productivity/
│ ├── SnippetsDemo.cs # Exercise 12: Code snippets (ctor, prop, etc.)
│ ├── MultiCursorDemo.cs # Exercise 13: Multi-cursor editing
│ ├── SurroundWithDemo.cs # Exercise 14: Surround with if/try/region
│ └── TaskListDemo.cs # Exercise 15: TODO comments, task management
│
├── BestPractices/
│ ├── CodeAnalysisDemo.cs # Exercise 17: Roslyn analyzers, Quick Actions
│ └── .editorconfig # Code style configuration
│
├── Extensions/
│ └── NuGetDemo.cs # Exercise 10: Package management
│
└── VS_PRODUCTIVITY_GUIDE.md # Complete exercise guide
- Visual Studio 2022 (Community, Professional, or Enterprise)
- .NET 6.0 or later
- Basic C# knowledge
- Open the solution in Visual Studio 2022
- Build the solution (Ctrl + Shift + B)
- Open VS_PRODUCTIVITY_GUIDE.md for detailed instructions
- Start with Exercise 1 in
KeyboardShortcuts/BuildAndRun.cs
Goal: Build muscle memory for essential shortcuts
- Exercise 1: Build & Run (Ctrl+Shift+B, F5, Ctrl+F5)
- Exercise 2: Quick Actions (Ctrl+., Alt+Enter, Ctrl+K+D)
- Exercise 3: Navigation (F12, Ctrl+R+R, Shift+F12)
- Exercise 4: Editing (Ctrl+D, Ctrl+Shift+L, Ctrl+Shift+F)
Time: 30-45 minutes
Practice: Repeat each shortcut 5-10 times
Goal: Navigate large codebases efficiently
- Exercise 5: Advanced Navigation (Ctrl+T, Alt+F12, Ctrl+K+T)
- Exercise 6: IntelliSense & Code Lens
Time: 30 minutes
Practice: Navigate between the 3 files without using mouse
Goal: Master debugging tools
- Exercise 7: Basic Debugging (F9, F10, F11, DataTips)
- Exercise 8: Conditional Breakpoints (conditions, hit counts, Watch)
- Exercise 9: Interactive Debugging (Immediate Window, Edit & Continue)
Time: 60 minutes
Practice: Debug each scenario, modify variables, inspect state
Goal: Extend VS capabilities
- Exercise 10: NuGet Packages (Install-Package, package management)
- Exercise 11: Git Integration (commits, branches, history)
Time: 30 minutes
Practice: Install packages, make commits
Goal: Speed up coding with advanced features
- Exercise 12: Code Snippets (ctor, prop, for, try)
- Exercise 13: Multi-Cursor Editing (Ctrl+Alt+Click)
- Exercise 14: Surround With (Ctrl+K+S)
- Exercise 15: Task List (TODO, HACK, custom tokens)
- Exercise 16: Split Windows & Bookmarks
Time: 45 minutes
Practice: Use snippets and multi-cursor for real refactoring
Goal: Optimize development environment
- Exercise 17: Code Analysis (Roslyn analyzers, .editorconfig)
- Exercise 18: Live Unit Testing
- Exercise 19: Settings Customization
Time: 30 minutes
Practice: Configure analyzers, customize theme
- ✅ Keyboard Shortcuts (Exercises 1-4)
- ✅ Code Navigation (Exercises 5-6)
- ✅ Basic Debugging (Exercise 7)
- ✅ Advanced Debugging (Exercises 8-9)
- ✅ Code Snippets (Exercise 12)
- ✅ Multi-Cursor & Surround With (Exercises 13-14)
- ✅ Task List (Exercise 15)
- ✅ NuGet & Extensions (Exercise 10)
- ✅ Code Analysis (Exercise 17)
- ✅ Customization (Exercise 19)
Open KeyboardShortcuts/BuildAndRun.cs:
- Press Ctrl+Shift+B to build
- Press Ctrl+,E to see errors
- Use Ctrl+. to fix errors
- Press F5 to run
Open Debugging/BasicDebugging.cs:
- Set breakpoint on line 15 (F9)
- Start debugging (F5)
- Step through code (F10)
- Inspect variables (hover)
- Continue execution (F5)
Open Productivity/SnippetsDemo.cs:
- Type
prop+ Tab + Tab → Create property - Type
ctor+ Tab + Tab → Create constructor - Type
for+ Tab + Tab → Create for loop - Practice 10 different snippets
Track your progress with these goals:
- Bronze: Memorize 10 keyboard shortcuts
- Silver: Navigate code without mouse for 5 minutes
- Gold: Complete all 19 exercises
- Platinum: Reduce coding time by 30% (measure before/after)
- Diamond: Create 3 custom code snippets
- Master: Configure Live Unit Testing and use it daily
- Time yourself completing a simple task (e.g., create class with 5 properties)
- Count mouse clicks vs keyboard shortcuts used
- Note how long it takes to find a method definition
- Repeat the same task
- Compare time, mouse usage, navigation speed
- Expected improvement: 30-50% faster
- ⏱️ Time to complete common tasks
- 🖱️ Mouse usage percentage
- ⌨️ Keyboard shortcuts used per hour
- 🐛 Time to debug issues
- 🔍 Time to navigate code
-
Tools > Options > Environment > Keyboard
- Review and customize shortcuts
- Export/import keyboard scheme
-
Tools > Options > Text Editor > All Languages
- Enable Code Lens
- Configure line numbers
- Set tab size
-
Tools > Options > Debugging > General
- Enable Edit and Continue
- Enable Just My Code
-
View > Task List
- Add custom tokens (FIXME, BUG, NOTE)
- Tools > Options > Environment > Fonts and Colors
- Try: Dark theme, Blue theme, Light theme
- Customize syntax highlighting
- Productivity Power Tools - Enhanced features
- CodeMaid - Code cleanup
- ReSharper - Advanced refactoring (paid)
- Live Share - Real-time collaboration
- GitHub Copilot - AI code completion (paid)
- Microsoft's Visual Studio YouTube channel
- Pluralsight Visual Studio courses
- LinkedIn Learning VS courses
- Repetition is Key: Practice each shortcut 10+ times
- No Mouse Challenge: Try coding for 10 minutes without mouse
- Daily Practice: Spend 15 minutes daily on one exercise
- Real Projects: Apply techniques to your actual work
- Pair Programming: Teach shortcuts to colleagues
- Cheat Sheet: Print keyboard shortcuts reference
- Measure Progress: Track time savings weekly
- Check Tools > Options > Keyboard for conflicts
- Reset to default: Tools > Import and Export Settings
- Press Ctrl+Space to trigger manually
- Check Tools > Options > Text Editor > C# > IntelliSense
- Check project is set as startup project
- Verify build configuration (Debug vs Release)
- Check Tools > Options > Debugging > General
- Enable analyzers in project properties
- Check
.editorconfigis in project root - Rebuild solution
- All code examples use C# but principles apply to other languages
- Exercises are designed to be completed in any order
- Each file is self-contained with instructions
- Practice areas are provided for hands-on learning
- Intentional errors are included for learning purposes
- Complete all exercises in the recommended order
- Create custom snippets for your common code patterns
- Configure .editorconfig for your team's standards
- Share knowledge with your team
- Measure productivity gains after 1 week
- Continue learning with advanced VS features
If you encounter issues:
- Check the VS_PRODUCTIVITY_GUIDE.md for detailed instructions
- Review code comments in each exercise file
- Consult official Visual Studio documentation
- Ask questions on Stack Overflow with
visual-studiotag
Happy Coding! 🚀
Remember: The goal is not just to know these features, but to build muscle memory through practice. Spend time with each exercise, and you'll see dramatic productivity improvements!
Track your completion:
- Exercise 1: Build and Run
- Exercise 2: Quick Actions
- Exercise 3: Navigation
- Exercise 4: Editing Tricks
- Exercise 5: Advanced Navigation
- Exercise 6: IntelliSense
- Exercise 7: Basic Debugging
- Exercise 8: Conditional Breakpoints
- Exercise 9: Interactive Debugging
- Exercise 10: NuGet Packages
- Exercise 11: Git Integration
- Exercise 12: Code Snippets
- Exercise 13: Multi-Cursor
- Exercise 14: Surround With
- Exercise 15: Task List
- Exercise 16: Split Windows & Bookmarks
- Exercise 17: Code Analysis
- Exercise 18: Live Unit Testing
- Exercise 19: Settings Customization
Completion: 0/19 ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜