MobileCoder VSCode Extension
Sync your code files seamlessly between VSCode and the MobileCoder mobile app.
Features
- Cross-device sync: Sync files between VSCode and MobileCoder mobile app
- Secure Authentication: Email/password authentication with JWT tokens
- Automatic sync: Files are automatically synced when changed
- File watching: Real-time monitoring of file changes
- Remote file management: Browse and download files from your mobile device
- Conflict resolution: Smart handling of concurrent edits
Installation
From VSIX (Development)
- Clone the MobileCoder repository
- Navigate to the extension directory:
cd vscode-extension
npm install
npm run compile
- Package the extension:
npm install -g vsce
vsce package
- Install the generated
.vsix file in VSCode
From Source (Development)
- Open the
vscode-extension folder in VSCode
- Press
F5 to run the extension in a new Extension Development Host window
Setup
Install the extension (see Installation section above)
Sign in:
- Open the MobileCoder panel in VSCode
- Click "Sign In" and enter your MobileCode credentials
- Or use "Register" if you need to create a new account
Usage
Commands
MobileCoder: Sign In - Authenticate with your MobileCode account
MobileCoder: Sign Out - Sign out and clear stored credentials
MobileCoder: Sync Files - Manually sync all files
MobileCoder: Download from MobileCoder - Download a specific remote file
Views
- Remote Files: Browse files from your MobileCoder mobile app
- Authentication: Manage your sign-in status
Settings
mobilecoder.syncDirectory : Directory to sync (default: workspace root)
mobilecoder.autoSync : Enable automatic syncing (default: true)
mobilecoder.syncInterval : Auto-sync interval in seconds (default: 300)
File Types Supported
The extension syncs the following file types:
- JavaScript/TypeScript:
.js , .ts , .jsx , .tsx
- Python:
.py
- Java:
.java
- C/C++:
.cpp , .c , .h
- Web:
.css , .html
- Documentation:
.md , .txt
- Data:
.json , .xml
How It Works
- Files are synced to your MobileCode backend account
- Each file is stored with checksum verification for data integrity
- Timestamp comparison resolves conflicts automatically
- Real-time file watching enables automatic syncing
- JWT authentication ensures secure communication
Development
Building
npm install
npm run compile
Testing
npm run watch # Watch mode for development
Packaging
vsce package
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
This extension is part of the MobileCoder project. See the main repository for license information.
Support
For issues and feature requests, please visit the MobileCoder GitHub repository.
| |