Skip to content

mojocss/mojo-intellisense

Repository files navigation

Mojo CSS VSCode Extension

mojocss-intellisense

This extension provides autocompletion for Mojo utility classes in your HTML, CSS, and JavaScript files. It dynamically generates suggestions based on your Mojo configuration.

Features

  • Autocompletion for Mojo utility classes.
  • Dynamic suggestions based on your mojo.config.js file.
  • Supports various languages including HTML, CSS, JavaScript, TypeScript, Vue, and more.

Installation

  1. Install Visual Studio Code.
  2. Open the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or use the keyboard shortcut Ctrl+Shift+X.
  3. Search for "Mojo" and install the extension.

Usage

  1. Ensure you have a mojo.config.js file in your project.
  2. Open an HTML, CSS, or JavaScript file.
  3. Start typing Mojo utility classes, and the extension will provide dynamic autocompletions based on your configuration.

Configuration

Ensure your mojo.config.js file is properly configured. The extension monitors changes to the mojo.config.js file, so any updates will be automatically reflected.

Auto-Reload Configuration

The extension automatically reloads the configuration when changes are made to the mojo.config.js file.

License

This extension is licensed under the MIT License.