How to stop Intellij from automatically running SBT

I would leave the autoimport checkbox unchecked when importing a SBT project.

In this way, it doesn't refresh automatically, it must be done by hand.

In order to change it, after it has been imported, you can edit by hand the .idea/sbt.xml file:

<project version="4">
  <component name="ScalaSbtSettings">
    <option name="linkedExternalProjectsSettings">
      <SbtProjectSettings>
        <option name="externalProjectPath" value="$PROJECT_DIR$" />
        <option name="jdk" value="1.7" />
        <option name="resolveClassifiers" value="true" />
        <option name="useAutoImport" value="true" />
      </SbtProjectSettings>
    </option>
  </component>
</project>

and change the useAutoImport setting. If necessary, restart IDEA.

UPDATE: Also in the settings page, search for SBT, and there you can enable or disable auto-import of SBT files.

When doing heavy work on a .sbt file, I disable auto-import.


In IntelliJ 2017.1 and later, you open the SBT projects window on the right sidebar, right-click on the project name, and uncheck the Auto-import option


IntelliJ 14.1 now allows you to adjust SBT settings after importing projects.

File > Settings > Build > Build Tools > SBT (Or click the settings button on the SBT projects panel.)

Uncheck "auto-import".

enter image description here

This is the user-friendly equivalent of david.perez's answer.