A plugin for IntelliJ IDEA that synchronizes the latest settings and code styles for developers. It ensures consistent code formatting and inspections across projects.
This is typically a one-time setup. If you encounter any issues or have suggestions for improvements, please reach out to Mischa on Slack.
- Open IntelliJ IDEA CE.
- Click the gear icon (⚙️) in the top-right corner.
- Select Plugins.
- In the Plugins window, click the new gear icon (⚙️) that appears.
- Select Manage Plugin Repositories.
- Add the following URL to the list of repositories: https://raw.githubusercontent.com/MaxxtonGroup/maxxton-intelij-sync/refs/heads/main/updatePlugins.xml
- Switch to the Marketplace tab in the Plugins window.
- Search for a plugin named Mold.
- Install the plugin and restart IntelliJ IDEA.
- Open IntelliJ IDEA settings.
- Navigate to Editor -> Code Style.
- Set the Scheme to
Maxxton Code Style [MOLD]. - Navigate to Editor -> Inspections.
- Set the Profile to
Maxxton Inspections [MOLD].
IntelliJ IDEA supports built-in Git hooks that can be used to enforce code style and inspections automatically on Git commits. Here's how to set it up:
- Open IntelliJ IDEA and open the Settings menu.
- Go to Version Control -> Commit.
- Enable the Cleanup option and select the
Maxxton Inspections [MOLD]profile. - Enable the Analyze Code option and select the
Maxxton Inspections [MOLD]profile. - Click OK to save the settings.
With these settings enabled, IntelliJ IDEA will automatically apply the selected checks and formatting whenever you commit changes.
- Clone or download this repository.
- Open the project in IntelliJ IDEA.
- Run the Gradle task:
intellij platform -> buildPlugin. - The plugin will be generated as a
.zipfile in the./build/distributions/directory.
- Open the Plugins window in IntelliJ IDEA (⚙️ icon in the top-right corner).
- Click the gear icon next to the Marketplace and Installed tabs.
- Select Install Plugin from Disk....
- Choose the
.zipfile from the./build/distributions/directory of this project.