VS Code Complete Mastery Summary
π― What You Learned (Quick Overview)
You went from beginner to professional VS Code power user across 11 core challenges + 5 advanced challenges!
CORE CHALLENGES (1-11)
Challenge #1: Navigation Speed β
Fastest way to jump to any line in any file:
Ctrl+P β type "filename:linenumber" β Enter
Example: Ctrl+P β auth.js:247 β opens file at line 247
Challenge #2: Multi-Line Editing β
Edit multiple places at once:
Ctrl+H (Find & Replace)
Find: onClick=
Replace: onPress=
Click "Replace All" β changes everywhere!
Challenge #3: Debug Detective β
Find ALL places where a function is called:
Shift+F12 (Find All References)
Shows every line using that function
Challenge #4: Code Folding β
Hide/show code sections:
Ctrl+K Ctrl+1 β fold to level 1 (outline view)
Ctrl+Shift+[ β fold current function
Ctrl+Shift+] β unfold current function
Challenge #5: Split Screen β
See 3 files simultaneously:
Ctrl+\ β split vertically
Alt+1/2/3 β switch between panes
Challenge #6: Breakpoints β
Debug code by stopping at lines:
Click line number β red breakpoint
F5 β start debugging
Step through code line by line
Inspect variables while paused
Challenge #7: Regex Search & Replace β
Replace patterns with regex:
Find: \b([a-z]+)_([a-z]+)\b
Replace: $1\u$2
Converts: user_name β userName
Challenge #8: Custom Snippets β
Auto-expand code templates:
Ctrl+Shift+P β "Configure User Snippets"
Create snippet with tab stops ($1, $2, $3)
Type prefix β auto-expand!
Example: "useState" β full React hook
Challenge #9: Keyboard Editing β
Edit without mouse:
Ctrl+Shift+D β duplicate line
Ctrl+Shift+K β delete line
Alt+β/β β move line
Ctrl+/ β toggle comment
Ctrl+J β join lines
Challenge #10: Multi-Cursor Magic β
Edit multiple locations at once:
Ctrl+D β select next occurrence
Ctrl+Shift+L β select ALL occurrences
Alt+Click β add cursor anywhere
All cursors edit simultaneously!
Challenge #11: Git Integration β
Source control without terminal:
Ctrl+Shift+G β Source Control panel
Stage files, view diffs, commit
Right-click β resolve conflicts
GitLens shows who wrote each line
ADVANCED CHALLENGES (A-E)
Challenge A: Profiles π
Different VS Code configs for different projects:
Profile 1: React Development (2-space, ESLint, Prettier)
Profile 2: Python Data Science (4-space, Jupyter, Pylance)
Profile 3: Minimalist Writer (Markdown, distraction-free)
Switch profiles instantly!
Each has own extensions, settings, snippets
Challenge B: Power Settings βοΈ
Configure the perfect development environment:
Auto-save: "files.autoSave": "afterDelay"
Format on save: "editor.formatOnSave": true
Language-specific settings: [python], [javascript]
Font ligatures, word wrap, minimap, rulers
Challenge C: Task Automation π€
Automate common commands:
Ctrl+Shift+B β Run build task
Custom tasks for: test, deploy, lint, format
Create in: .vscode/tasks.json
Auto-run on folder open!
Challenge D: Extensions π§
Install power tools:
Top 10:
1. Prettier (format code)
2. ESLint (find errors)
3. GitLens (see git history)
4. Thunder Client (test APIs)
5. Peacock (color-code workspaces)
6. Python (language support)
7. Material Icons (beautiful icons)
8. Dracula (theme)
9. Todo Tree (track tasks)
10. Live Server (auto-refresh)
Challenge E: Workspaces π¦
Manage entire projects in one window:
Create: MyProject.code-workspace
Add multiple folders: frontend/, backend/, docs/
Shared settings for all folders
Recommended extensions auto-install
Perfect team setup!
β‘ ESSENTIAL SHORTCUTS (Your Toolkit)
Navigation (Get Anywhere Fast)
Ctrl+P β Quick open file + line number
Ctrl+G β Go to line
F12 β Go to definition
Shift+F12 β Find all references
Ctrl+Shift+O β Go to symbol in file
Ctrl+T β Go to symbol in workspace
Ctrl+F β Find
Ctrl+H β Find & Replace
Editing (Edit Like a Pro)
Ctrl+Shift+D β Duplicate line
Ctrl+Shift+K β Delete line
Alt+β/β β Move line up/down
Ctrl+/ β Toggle comment
Ctrl+J β Join lines
Ctrl+D β Select next occurrence
Ctrl+Shift+L β Select ALL occurrences
Alt+Click β Add multi-cursor
Ctrl+L β Select entire line
Window Management (Organize Code)
Ctrl+\ β Split vertically
Ctrl+K Ctrl+- β Split horizontally
Alt+1/2/3 β Focus pane 1/2/3
Ctrl+K Ctrl+W β Close pane
Ctrl+Shift+E β Explorer
Ctrl+Shift+F β Search
Ctrl+Shift+G β Git
Ctrl+Shift+D β Debug
Ctrl+` β Terminal
Code Folding (Hide/Show)
Ctrl+K Ctrl+0 β Collapse all
Ctrl+K Ctrl+J β Expand all
Ctrl+K Ctrl+1-9 β Fold to level 1-9
Ctrl+Shift+[ β Fold current region
Ctrl+Shift+] β Unfold current region
Tasks & Debug
Ctrl+Shift+B β Run build task
Ctrl+Shift+P β Command palette
F5 β Start debugging
Shift+F5 β Stop debugging
F10 β Step over
F11 β Step into
π― Key Concepts Mastered
1. Quick Open Pattern
Everything starts with Ctrl+P
File opening, symbol search, command palette
Learn to use it constantly!
2. Find & Replace Power
Ctrl+F for text search
Ctrl+H for find & replace
Enable regex (.* button) for patterns
Use $1, $2 for capture groups
3. Multi-Cursor Workflow
Ctrl+D for next occurrence
Ctrl+Shift+L for all occurrences
Alt+Click for precise placement
Edit all at once!
4. Settings Hierarchy
User Settings (global)
Workspace Settings (.vscode/settings.json)
Folder-specific settings
Extensions settings
5. Automation
Tasks β automate builds/tests
Snippets β auto-expand code
Extensions β add functionality
Profiles β switch setups instantly
π Speed Improvements (Real Numbers)
| Task | Traditional | VS Code | Speedup |
|---|---|---|---|
| Jump to line 247 | Click + scroll + click | Ctrl+P 247 + Enter | 10x faster |
| Replace 20 occurrences | Manual 20 times | Ctrl+H Replace All | 20x faster |
| Find all usages | Search + check manually | Shift+F12 | 5x faster |
| Comment block | Select + type // | Select + Ctrl+/ | 3x faster |
| Edit 5 lines | 5 separate edits | Multi-cursor 1 edit | 5x faster |
| Open 3 files side-by-side | 3 VS Code windows | 1 window Ctrl+|Cleaner |
πΎ Your Configuration Checklist
β settings.json (User)
Auto-save enabled
Format on save enabled
Font configured (Fira Code, size 14)
Theme set (Dracula)
β .vscode/settings.json (Workspace)
Project-specific settings override user
Shared with entire team
β .vscode/extensions.json
Recommended extensions listed
Team installs with one click
β .vscode/tasks.json
Build task configured
Test task configured
Deploy task configured
β MyProject.code-workspace
All folders added
Shared settings configured
Ready to share with team!
π From Beginner to Pro
Week 1: Learn Basics
β Navigation (Ctrl+P, Ctrl+G)
β Multi-line editing (Ctrl+D, Ctrl+H)
β Keyboard shortcuts
β File structure
Week 2: Master Core Features
β Debugging (breakpoints, step through)
β Git integration
β Find & Replace patterns
β Multi-cursor editing
Week 3: Advanced Techniques
β Custom snippets
β Tasks automation
β Regex patterns
β Code folding for large files
Week 4+: Professional Workflows
β Extensions mastery
β Workspace management
β Team setup (shared config)
β Custom profiles
π Real-World Application
Scenario 1: Bug Fixing (15 minutes)
1. Ctrl+Shift+F β Find error message
2. Shift+F12 β Find all references
3. F12 β Go to definition
4. Set breakpoint β F5 debug
5. Step through code
6. Found it! Fix and save
7. All tests pass
Scenario 2: Refactoring (20 minutes)
1. Ctrl+H β Find & Replace with regex
2. Replace all occurrences
3. Ctrl+Shift+L β Select all matches
4. Edit all simultaneously
5. Format on save
6. Commit changes
Scenario 3: Team Setup (5 minutes)
1. Create MyProject.code-workspace
2. Add .vscode/settings.json
3. Add .vscode/extensions.json
4. Team clones repo
5. Open .code-workspace
6. "Install recommended extensions" β done!
π Pro Tips Summary
β Use Ctrl+P for everything
- Files, symbols, commands
- Type βfilename:lineβ for line jumping
β Master Find & Replace (Ctrl+H)
- Regex with (.* enabled)
- 2 for capture groups
- Replace All for bulk changes
β Multi-cursor (Ctrl+D, Ctrl+Shift+L)
- Edit multiple places at once
- Alt+Click for precise positioning
β Split screen (Ctrl+)
- See related files side-by-side
- Alt+1/2/3 to switch
β Keyboard first
- Minimize mouse usage
- Speed up workflow significantly
β Automate everything
- Tasks for builds/tests
- Snippets for code templates
- Extensions for power tools
β Share configuration
- .vscode/settings.json
- .vscode/extensions.json
- .code-workspace file
π― Next Steps
- Now: Use these shortcuts daily
- This Week: Master keyboard navigation (Ctrl+P, Ctrl+G, Ctrl+D)
- Next Week: Learn Find & Replace patterns
- Week 3: Set up your first workspace
- Week 4+: Build professional project setups
Your Score: 210/250 = 84% VS Code Master! π
You have mastered:
- β Navigation (Expert)
- β Editing (Expert)
- β Debugging (Advanced)
- β Git Integration (Advanced)
- β Automation (Advanced)
- β Team Collaboration (Advanced)
Youβre now a professional VS Code power user!
Resources to Keep Learning
Official Docs: https://code.visualstudio.com/docs
Keyboard Shortcuts: Ctrl+K Ctrl+S
Command Palette: Ctrl+Shift+P
Tips & Tricks: https://code.visualstudio.com/docs/getstarted/tips-and-tricks
Final Thought
Youβve learned:
- 50+ keyboard shortcuts
- Debugging and testing
- Git integration
- Custom snippets
- Workspace management
- Team collaboration
- Performance optimization
This puts you in the top 5% of VS Code users! π
Use these skills to build amazing projects faster than ever before!