- Added quick start instructions in README.md for first-time setup, including commands for complete setup, verification, and service start. - Revised FINAL_STATUS.md to reflect the project's infrastructure completion and readiness for execution, detailing scripts created and documentation status.
2.9 KiB
2.9 KiB
Cursor IDE - WSL Terminal Setup
Default Terminal Configuration
The project is configured to use WSL/Ubuntu as the default terminal in Cursor IDE.
Configuration File
The settings are stored in .vscode/settings.json:
{
"terminal.integrated.defaultProfile.windows": "Ubuntu",
"terminal.integrated.profiles.windows": {
"Ubuntu": {
"path": "wsl.exe",
"args": ["-d", "Ubuntu"],
"icon": "terminal-linux"
}
}
}
How to Verify
-
Open a new terminal in Cursor:
- Press
Ctrl+`(backtick) or - Go to
Terminal→New Terminal
- Press
-
Check terminal type:
- The terminal should show
UbuntuorWSLin the dropdown - The prompt should show Linux-style paths (e.g.,
/mnt/c/...)
- The terminal should show
Manual Setup (if needed)
If the automatic configuration doesn't work:
-
Open Cursor Settings:
- Press
Ctrl+,(orCmd+,on Mac) - Search for "terminal default profile"
- Press
-
Set Default Profile:
- Find
Terminal > Integrated > Default Profile: Windows - Select
Ubuntufrom the dropdown
- Find
-
Or edit settings.json directly:
- Press
Ctrl+Shift+P - Type "Preferences: Open User Settings (JSON)"
- Add the configuration from
.vscode/settings.json
- Press
Switching Terminal Types
You can still use other terminals when needed:
-
Open terminal dropdown:
- Click the
+button next to terminal tabs - Or use
Ctrl+Shift+`` (backtick)
- Click the
-
Select terminal type:
- Choose
Ubuntu(WSL) - Choose
PowerShell(Windows) - Choose
Command Prompt(Windows)
- Choose
Project-Specific Settings
The .vscode/settings.json file in this project ensures that:
- ✅ WSL/Ubuntu is the default terminal
- ✅ All team members use the same terminal environment
- ✅ Scripts work correctly (bash scripts require WSL)
Troubleshooting
Terminal doesn't open in WSL
-
Check WSL is installed:
wsl --list --verbose -
Verify Ubuntu is available:
- Should show
Ubuntuin the list - Should be running or available
- Should show
-
Restart Cursor:
- Close and reopen Cursor IDE
- Open a new terminal
Terminal shows PowerShell instead
-
Check settings:
- Verify
.vscode/settings.jsonexists - Check
terminal.integrated.defaultProfile.windowsis set toUbuntu
- Verify
-
Reload window:
- Press
Ctrl+Shift+P - Type "Developer: Reload Window"
- Press
WSL path issues
If paths don't resolve correctly:
- Use full WSL paths:
/mnt/c/Users/... - Or use relative paths from project root
- The project root should be accessible at
/mnt/c/Users/intlc/defi_oracle_projects/CurrenciCombo
Benefits
Using WSL as default terminal:
- ✅ Consistent with project scripts (all bash)
- ✅ Better compatibility with Linux-based tools
- ✅ Native Docker support
- ✅ Better Node.js performance
- ✅ Easier CI/CD pipeline alignment
Last Updated: 2025-01-15