diff --git a/README.md b/README.md index 9432cb4..1cfa483 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,13 @@ There are several reasons to behave like this: This setting overrides the Biome binary used by the plugin. +#### Enabling Code Formatting + +To enable formatting, open Biome settings and enable **LSP-based Code Formatting**. This feature allows you to format code using the designated hotkey (⌥⇧⌘+L or Ctrl+Alt+L). + +If you want to format code on save, navigate to **Actions on Save** settings and enable **Reformat Code**, specifying the desired file types. + + ### Supported IDEs This plugin is currently supported in the following IDEs: diff --git a/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt b/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt deleted file mode 100644 index 3fe7ceb..0000000 --- a/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.github.biomejs.intellijbiome.actions - -import com.github.biomejs.intellijbiome.services.BiomeServerService -import com.intellij.openapi.actionSystem.AnAction -import com.intellij.openapi.actionSystem.AnActionEvent -import com.intellij.openapi.components.service - -class RestartBiomeServerAction : AnAction() { - override fun actionPerformed(actionEvent: AnActionEvent) { - val project = actionEvent.project - if (project == null || project.isDefault) return - - val biomeServerService = project.service() - - biomeServerService.restartBiomeServer() - biomeServerService.notifyRestart() - } -} diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 3b957ae..5d05fbc 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -67,19 +67,4 @@ - - - - - -