šØ VS Code Preview Guide - HFRP Relief Project
- ā Live Preview (ms-vscode.live-server) v0.4.16
šØ VS Code Preview Guide - HFRP Relief Project
ā Extensions Already Installed
- ā Live Preview (ms-vscode.live-server) v0.4.16
- ā CodeGPT v3.14.135
- ā Pretty TypeScript Errors v0.6.1
š How to Preview Your Project in VS Code
Method 1: Simple Browser (Easiest)
Step 1: Make sure your dev server is running (it already is!)
Server URL: http://localhost:3005
Step 2: Open Simple Browser in VS Code
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: "Simple Browser: Show"
- Enter URL: http://localhost:3005
- Press Enter
The browser will open in a VS Code panel alongside your code!
Method 2: Live Preview Extension
Option A - Quick Open:
- Press
Cmd+Shift+P(Command Palette) - Type: "Live Preview: Show Preview (External Browser)"
- Select it to open in your default browser
Option B - Right-Click:
- Right-click on any
.htmlor.tsxfile in Explorer - Select "Show Preview"
Method 3: Built-in Terminal Browser View
Step 1: Open integrated terminal
- Press
Ctrl+`(backtick) orView ā Terminal
Step 2: Click the "Ports" tab next to "Terminal"
- You should see port
3005listed - Click the globe icon (š) next to port 3005
- Or right-click ā "Open in Browser"
šÆ Recommended Workflow
Split View Setup (Best Experience):
-
Left Side: Your code editor
- Open files like
src/app/page.tsxorsrc/app/donate/page.tsx
- Open files like
-
Right Side: Browser preview
- Use Simple Browser with http://localhost:3005
- OR use external browser with split screen
To Set This Up:
- Open your code file (e.g.,
src/app/page.tsx) - Press
Cmd+Shift+Pā "Simple Browser: Show" - Enter:
http://localhost:3005 - Drag the browser tab to the right side to split the view
- Make changes to your code ā Save ā See updates instantly!
š„ Hot Reload is Active
Your Next.js dev server has Hot Module Replacement (HMR):
- Edit any file and save
- Changes appear instantly in the browser
- No manual refresh needed!
Try It:
- Open
src/app/page.tsx - Change some text (e.g., a heading)
- Save the file (
Cmd+S) - Watch the preview update automatically! āØ
š± Preview on Multiple Devices
Your Local Network:
The dev server is accessible at:
- Local: http://localhost:3005
- Network: http://0.0.0.0:3005
To Preview on Phone/Tablet:
- Find your computer's IP address:
# Run in terminal: ifconfig | grep "inet " | grep -v 127.0.0.1 - On your mobile device (same WiFi network):
- Open browser
- Go to:
http://YOUR_IP:3005 - Example:
http://192.168.1.100:3005
šØ VS Code Layout Tips
Recommended Extensions (Already Installed):
- ā Live Preview - Built-in browser
- ā CodeGPT - AI coding assistant
- ā Pretty TypeScript Errors - Better error messages
Additional Helpful Extensions:
# Install Tailwind CSS IntelliSense (helpful for your project)
code --install-extension bradlc.vscode-tailwindcss
# Install ES7+ React/Redux/React-Native snippets
code --install-extension dsznajder.es7-react-js-snippets
# Install Auto Rename Tag
code --install-extension formulahendry.auto-rename-tag
š ļø Quick Commands
Command Palette (Cmd+Shift+P):
Simple Browser: Show - Open built-in browser
Live Preview: Show Preview - Open external preview
Ports: Focus on Ports View - See running servers
View: Toggle Integrated Terminal
Keyboard Shortcuts:
Cmd+Shift+P - Command Palette
Cmd+B - Toggle Sidebar
Cmd+J - Toggle Panel (Terminal/Ports)
Cmd+\ - Split Editor
Ctrl+` - Toggle Terminal
Cmd+S - Save (triggers hot reload)
š Viewing Different Pages
Once the browser is open in VS Code:
Navigate by changing the URL in Simple Browser:
Homepage: http://localhost:3005
Donate: http://localhost:3005/donate
Admin: http://localhost:3005/admin
Gallery: http://localhost:3005/gallery
Impact: http://localhost:3005/impact
Radio: http://localhost:3005/radio
Blog: http://localhost:3005/blog
Contact: http://localhost:3005/contact
Or click links in the preview window!
š Debugging in Preview
Open DevTools:
- In Simple Browser, right-click anywhere
- Select "Inspect" or "Inspect Element"
- Developer Tools open in VS Code!
Or use Chrome DevTools:
- Open in external Chrome browser
- Press
F12orCmd+Option+I - Full DevTools available
š Workflow Example
Editing the Donate Page:
-
Open the file:
File ā Open ā src/app/donate/page.tsx -
Open preview:
Cmd+Shift+Pā "Simple Browser: Show"- Enter:
http://localhost:3005/donate
-
Arrange windows:
- Drag browser tab to right side
- Code on left, preview on right
-
Make changes:
- Edit donation amounts
- Change button text
- Modify styling
-
Save and watch:
- Press
Cmd+S - Preview updates instantly!
- Press
⨠Pro Tips
1. Multiple Preview Windows
- Open multiple Simple Browser instances
- Preview different pages simultaneously
- Great for comparing layouts
2. Responsive Testing
- Resize the browser panel
- Test mobile/tablet/desktop views
- Use browser DevTools device toolbar
3. Console Logs
- Open DevTools in Simple Browser
- See
console.log()output - Debug JavaScript errors
4. Network Requests
- Monitor API calls
- Check Stripe integration
- Verify webhook calls
šÆ Current Status
ā Dev server running at: http://localhost:3005 ā Hot reload enabled ā All pages compiling successfully ā Stripe test mode active ā VS Code extensions installed
You're ready to start previewing! š
š Troubleshooting
Preview not loading?
- Check terminal: Is dev server running?
- Look for errors in Terminal output
- Try refreshing the browser panel
Changes not appearing?
- Make sure you saved the file (
Cmd+S) - Check console for errors
- Try hard refresh (
Cmd+Shift+R)
Port 3005 in use?
- Check Ports tab in VS Code
- Stop other services using port 3005
- Or change port in
package.json
š Resources
- Next.js Docs: https://nextjs.org/docs
- VS Code Docs: https://code.visualstudio.com/docs
- Live Preview Extension: https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server
Happy Coding! š
Related Documents
Comprehensive AI Assistant Tools Reference
title: Comprehensive AI Assistant Tools Reference
iOS Deployment Guide
**Introduction:** Deploying the Krome app to iOS (iPhone/iPad) is a bit more involved due to Appleās ecosystem requirements. This guide will cover setting up an iOS development environment, building the Tauri app for iOS, publishing on Appleās App Store, alternative distribution options like TestFlight or Enterprise, the App Store review process, common pitfalls, and CI/CD for iOS. As before, we assume you know general development concepts but are new to iOS specifics.
How to Add Resources to Your FastMCP Server
In the Model Context Protocol (MCP), there are three main capabilities:
Continue.dev MCP Integration Setup Guide
Edit your Continue.dev configuration file: