The MicroStudio Extension for Visual Studio Code is a custom extension that integrates the MicroStudio game engine with the power of VS Code. This extension allows you to manage and edit your MicroStudio projects directly from the VS Code editor, leveraging the MicroStudio API to interact with your projects seamlessly.
- View Projects: Log in to your MicroStudio account and browse your available projects.
- Select a Project: Pick a project to view its folders and assets.
- File Viewing and Editing: Load files from your MicroStudio projects directly into VS Code for editing.
- Live Sync: Changes made in VS Code are automatically pushed to the MicroStudio API, keeping your project up to date without needing to save manually.
- Custom Sidebar View: Adds a dedicated MicroStudio view in the Activity Bar for managing your projects.
- Webview for Rich Interactions: The extension provides a web-based panel for enhanced functionality, powered by React and TailwindCSS.
- Install Visual Studio Code.
- Ensure you have a MicroStudio account.
- Node.js and npm installed on your system.
- Clone this repository:
git clone https://github.com/CodingButter/microstudio-vscode
- Install dependencies:
cd microstudio-vscode npm install
- Build the extension:
npm run build
- Open the project in VS Code:
code .
- Run the extension:
- Press
F5
to open a new VS Code window with the extension loaded.
- Press
- Open the MicroStudio panel from the Activity Bar.
- Log in using your MicroStudio account.
- Browse your projects and select one to manage.
- Open files for editing; your changes are synced back to MicroStudio automatically.
This project is built with:
- TypeScript: For type-safe development.
- React: For the webview UI.
- TailwindCSS: For styling the webview.
- Vite: For building the webview assets.
src/
: Main source code for the VS Code extension.extension.ts
: Entry point for the extension.providers/
: Contains theWebviewViewProvider
implementation.utilities.ts
: Helper functions for resource management.
webview-ui/
: React-based UI for the webview.src/
: React components and application logic.build/
: Compiled assets for the webview.
npm run build
: Builds the TypeScript code and webview assets.npm run watch
: Watches for file changes and rebuilds automatically.npm run lint
: Runs ESLint to check for code quality issues.
- Webview Loading: Ensure the
webview-ui/build
directory contains the compiled assets (index.js
,index.css
). If missing, runnpm run build
. - View Not Showing: Verify that the
viewType
inpackage.json
matches theWebviewViewProvider
ID.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add your message here"
- Push to your branch:
git push origin feature/your-feature-name
- Open a pull request.
This project is licensed under the MIT License.
For more details on MicroStudio, visit the official website.