This repository contains enhanced PowerShell scripts to fix VSCode shell integration warnings and optimize settings for Blackbox AI development workflows.
- β Enhanced VSCode Detection: Supports both standard VSCode and VSCode Insiders
- β Blackbox AI Optimization: Specialized settings for optimal AI coding experience
- β Automatic Backup: Creates timestamped backups before making changes
- β Improved Error Handling: Comprehensive validation and error recovery
- β Better User Experience: Enhanced logging and progress feedback
- β JSON Validation: Ensures settings files are valid before writing
- π€ AI Extension Settings: Optimized configuration for Blackbox AI extension
- π§ Enhanced IntelliSense: Improved code completion and suggestions
- β‘ Performance Tuning: Optimized settings for AI-powered development
- π― Smart Suggestions: Enhanced quick suggestions for comments and strings
- πΎ Auto-save Configuration: Optimized file handling for AI workflows
- π Format on Save: Automatic code formatting and import organization
fix_vscode_shell_integration.ps1- Enhanced main script with Blackbox AI supportfix_vscode_shell_integration_enhanced.ps1- Full-featured version with advanced optionsfix_blackbox_integration.bat- Batch script alternative for quick fixes
README.md- This comprehensive guideIMPROVEMENT_PLAN.md- Detailed improvement roadmapSHELL_INTEGRATION_FIX.md- Technical documentation
# Basic usage - applies Blackbox AI optimizations
.\fix_vscode_shell_integration.ps1
# Force update existing settings
.\fix_vscode_shell_integration.ps1 -Force
# Enable verbose logging
.\fix_vscode_shell_integration.ps1 -Verbose -Force# Full optimization with verbose output
.\fix_vscode_shell_integration_enhanced.ps1 -Force -Verbose
# Create backup only (no changes)
.\fix_vscode_shell_integration_enhanced.ps1 -BackupOnly
# Restore from backup
.\fix_vscode_shell_integration_enhanced.ps1 -Restore -BackupPath "vscode_backup_20231201_143022"
# Show help
.\fix_vscode_shell_integration_enhanced.ps1 -Help# Run the batch script for quick setup
fix_blackbox_integration.bat{
"terminal.integrated.shellIntegration.enabled": true,
"terminal.integrated.shellIntegration.showWelcome": false,
"terminal.integrated.shellIntegration.decorationsEnabled": true,
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}{
"blackbox.enabled": true,
"blackbox.autoComplete": true,
"blackbox.codeCompletion": true,
"blackbox.chatEnabled": true
}{
"editor.inlineSuggest.enabled": true,
"editor.suggestOnTriggerCharacters": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.acceptSuggestionOnCommitCharacter": true,
"editor.acceptSuggestionOnEnter": "on",
"editor.tabCompletion": "on"
}{
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": true
}
}| Parameter | Description | Example |
|---|---|---|
-Force |
Force overwrite existing settings | .\script.ps1 -Force |
-Help |
Show help information | .\script.ps1 -Help |
-Verbose |
Enable detailed logging | .\script.ps1 -Verbose |
| Parameter | Description | Example |
|---|---|---|
-BackupOnly |
Create backup without changes | .\script.ps1 -BackupOnly |
-Restore |
Restore from backup | .\script.ps1 -Restore -BackupPath "backup_dir" |
-BackupPath |
Specify backup directory | Used with -Restore |
- Creates timestamped backups before making changes
- Backup format:
settings_backup_YYYYMMDD_HHMMSS.json - Supports both user and workspace settings
- JSON validation before writing settings
- File existence verification after creation
- Error handling with detailed messages
# Restore from automatic backup
.\fix_vscode_shell_integration_enhanced.ps1 -Restore -BackupPath "vscode_backup_20231201_143022"%LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe%PROGRAMFILES%\Microsoft VS Code\Code.exe%PROGRAMFILES(X86)%\Microsoft VS Code\Code.exe
%LOCALAPPDATA%\Programs\Microsoft VS Code Insiders\Code - Insiders.exe%PROGRAMFILES%\Microsoft VS Code Insiders\Code - Insiders.exe%PROGRAMFILES(X86)%\Microsoft VS Code Insiders\Code - Insiders.exe
-
Permission Errors
# Run PowerShell as Administrator Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
VSCode Not Found
- Ensure VSCode is installed in standard locations
- Check if using portable installation
- Verify installation path manually
-
Settings Not Applied
- Restart VSCode completely
- Check if Blackbox AI extension is installed
- Verify settings files were created correctly
- Open VSCode
- Press
Ctrl+Shift+Pand type "Terminal: Create New Terminal" - Check if shell integration warnings are gone
- Test Blackbox AI features (if extension installed)
- OS: Windows 10 or later
- PowerShell: 5.0 or later
- VSCode: Any recent version
- Permissions: Write access to VSCode settings directories
- β¨ Blackbox AI Integration: Specialized settings for AI development
- π Enhanced Safety: Automatic backups and rollback support
- π― Better Detection: Support for VSCode Insiders and custom paths
- π Improved Logging: Detailed progress and error reporting
- β‘ Performance: Optimized settings for AI workflows
- π οΈ Advanced Options: Backup-only and restore functionality
- Fixed user settings update logic
- Added comprehensive error handling
- Enhanced VSCode detection (including Insiders)
- Automatic backup creation
- JSON validation before writing
- Better merge logic for existing settings
- Improved user experience with detailed feedback
If you encounter issues:
- Check the logs: Use
-Verboseflag for detailed output - Verify backups: Automatic backups are created for safety
- Manual restore: Use the restore functionality if needed
- Check permissions: Ensure write access to VSCode directories
Feel free to submit issues and enhancement requests!
This project is provided as-is for educational and productivity purposes.
π Happy coding with Blackbox AI! π