As per my experience, Cursor IDE sorts imports automatically because of built-in formatting rules, likely powered by tools like Prettier or ESLint. It might also be reading configurations like .prettierrc
or .eslintrc
from your project. To disable this, check your project files for import-sorting rules and adjust them. While Cursor doesn’t seem to have a direct setting to turn this off, relying on WebStorm for better control over import sorting might be a good alternative.